Toshihiko
    Preparing search index...

    Interface AdapterQuery<Model, Connection, Cache, UpdateData, Where>

    Complete normalized query state received by an Adapter.

    interface AdapterQuery<
        Model = object,
        Connection = object,
        Cache = object | null,
        UpdateData extends object = DataRow,
        Where extends object = DataRow,
    > {
        cache: Cache;
        connection: Connection | null;
        fields: readonly string[];
        index: string;
        limit: readonly number[];
        model: Model;
        order: readonly Readonly<Record<string, number>>[];
        updateData: UpdateData;
        where: Where;
    }

    Type Parameters

    • Model = object
    • Connection = object
    • Cache = object | null
    • UpdateData extends object = DataRow
    • Where extends object = DataRow
    Index
    cache: Cache

    Effective Model Cache, when configured.

    connection: Connection | null

    Transaction connection selected by Query.conn().

    fields: readonly string[]

    Selected logical fields or Adapter expressions.

    index: string

    Adapter-specific index hint.

    limit: readonly number[]

    Empty, [count], or [offset, count].

    model: Model

    Model which created the Query.

    order: readonly Readonly<Record<string, number>>[]

    Normalized sort expressions.

    updateData: UpdateData

    Logical values supplied to a bulk update.

    where: Where

    Logical query condition.