Skip to content

KnexKeysetQuery

type KnexKeysetQuery = object;

Defined in: pagination-knex.ts:12

Minimal structural subset of a Knex query builder used by applyKeysetToKnex.

@xtandard/lib/pagination/knex does not import knex; any object with these methods works, which keeps Knex as your application’s dependency rather than a peer dependency of this package.

orderByRaw(sql): unknown;

Defined in: pagination-knex.ts:16

Apply a raw ORDER BY clause.

Parameter Type
sql string

unknown


whereRaw(sql, bindings?): unknown;

Defined in: pagination-knex.ts:14

Apply a raw WHERE clause with bind parameters.

Parameter Type
sql string
bindings? unknown[]

unknown