Libraries v5.0.0
    Preparing search index...

    Immutable raw SELECT with an explicit output contract. Knex remains mutable only inside apply(); its compiled SQL and bindings are captured before this object is returned.

    Type Parameters

    Index
    rowSchema: S

    The supplied output schema, without a second decoding or input-parser pass.

    • Awaiting executes this query; results are not cached.

      Type Parameters

      • R = InferType<S>[]
      • E = never

      Parameters

      • Optionalresolve: ((rows: InferType<S>[]) => R | PromiseLike<R>) | null
      • Optionalreject: ((error: any) => E | PromiseLike<E>) | null

      Returns Promise<R | E>