Toshihiko
    検索インデックスを準備しています...

    インターフェイス AdapterQuery<Model, Connection, Cache, UpdateData, Where>

    Adapter が受け取る、正規化済みの完全な Query 状態です。

    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;
    }

    型パラメーター

    • Model = object
    • Connection = object
    • Cache = object | null
    • UpdateData extends object = DataRow
    • Where extends object = DataRow
    インデックス
    cache: Cache

    設定されている場合に実際に使用される Model の Cache です。

    connection: Connection | null

    Query.conn() で選択されたトランザクション接続です。

    fields: readonly string[]

    選択された論理フィールドまたは Adapter 式です。

    index: string

    Adapter 固有のインデックスヒントです。

    limit: readonly number[]

    空、[count]、または [offset, count] です。

    model: Model

    この Query を作成した Model です。

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

    正規化済みのソート式です。

    updateData: UpdateData

    一括更新へ渡す論理値です。

    where: Where

    論理的なクエリ条件です。