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

    逻辑查询条件。