Entity
    Preparing search index...

    Class SQLChainableFragment<TFields, TValue>

    An SQL expression that supports fluent comparison methods. Extends SQLFragment so it can be used anywhere a SQLFragment is accepted. The fluent methods return plain SQLFragment instances since they produce complete conditions, not further chainable expressions.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    bindings: readonly SQLBinding<TFields>[]
    sql: string

    Methods

    • Get bindings in the format expected by Knex. Knex expects a flat array where both identifiers and values are mixed in order.

      Parameters

      • getColumnForField: (fieldName: keyof TFields) => string

        function that resolves an entity field name to its database column name

      Returns readonly RawBinding[]