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.
Methods
Section titled “Methods”orderByRaw()
Section titled “orderByRaw()”orderByRaw(sql): unknown;Defined in: pagination-knex.ts:16
Apply a raw ORDER BY clause.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sql |
string |
Returns
Section titled “Returns”unknown
whereRaw()
Section titled “whereRaw()”whereRaw(sql, bindings?): unknown;Defined in: pagination-knex.ts:14
Apply a raw WHERE clause with bind parameters.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sql |
string |
bindings? |
unknown[] |
Returns
Section titled “Returns”unknown