Member Junction
    Preparing search index...

    How values and errors cross between MJ and a dialect's database driver.

    interface DialectBinding {
        BooleanParameterValue(value: boolean): number | boolean;
        IsConnectionError(e: unknown): boolean;
        ParameterPlaceholder(index: number): string;
        TypedParameter(index: number, sqlType: string): TypedParameterReference;
    }

    Implemented by

    Index

    Methods

    • The reference to the bind parameter at zero-based index whose value has the database type sqlType (such as nvarchar(100) or character varying(100)). Where the driver declares parameter types (SQL Server), the parameter is named and declared with that type; where it binds untyped text (PostgreSQL), the placeholder casts it.

      Parameters

      • index: number
      • sqlType: string

      Returns TypedParameterReference