interface EscapeOptions {
    bindParam?: ((value) => string);
    mainAlias?: string;
    model?: null | ModelDefinition<Model<any, any>> | ModelStatic;
    replacements?: BindOrReplacements;
    type?: DataType;
}

Hierarchy (view full)

Properties

bindParam?: ((value) => string)

Type declaration

    • (value): string
    • Parameters

      • value: unknown

      Returns string

mainAlias?: string

The alias of the main table corresponding to FormatWhereOptions.model. Used as the prefix for attributes that do not reference an association, e.g.

const where = { name: 'foo' };

will produce

WHERE "<mainAlias>"."name" = 'foo'
model?: null | ModelDefinition<Model<any, any>> | ModelStatic

The model of the main alias. Used to determine the type & column name of attributes referenced in the where clause.

replacements?: BindOrReplacements

These are used to inline replacements into the query, when one is found inside of a Literal.

type?: DataType