Entity
    Preparing search index...

    SQL Fragment class that safely handles parameterized queries.

    Type Parameters

    • TFields extends Record<string, any>

    Hierarchy (View Summary)

    Index
    bindings: readonly SQLBinding<TFields>[]
    sql: string
    • 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[]