Skip to content

@xtandard/lib/pagination/knex

Knex adapter for pagination keysets (raw parameterized SQL, no driver dependency).

import { … } from "@xtandard/lib/pagination/knex";
Name Summary
applyKeysetToKnex Apply a portable keyset WHERE + ORDER BY to a Knex query builder. Values are passed as bindings; column identifiers are validated by the raw SQL helpers before being rendered.
Name Summary
ApplyKeysetToKnexOptions Options for applyKeysetToKnex.
KnexKeysetQuery Minimal structural subset of a Knex query builder used by applyKeysetToKnex.