@xtandard/lib/pagination/drizzle-rqb
Drizzle relational-query (RQB) keyset: v2 where/orderBy objects and the v1 callback form. No runtime dependency.
import { … } from "@xtandard/lib/pagination/drizzle-rqb";Functions
Section titled “Functions”| Name | Summary |
|---|---|
toDrizzleRqbKeyset |
Create an RQBv2 adapter for portable keyset predicates and ordering. columns maps logical cursor keys (from createKeysetSpec) to RQBv2 schema property keys; they need not match database column names. Throws when the keyset uses a key that has no mapping. |
toDrizzleRqbV1Keyset |
RQB v1 keyset adapter — renders the keyset AST to drizzle v1’s legacy where/orderBy CALLBACKS ((fields, operators) => …), building via the provided operators/fields (no raw-SQL alias footgun). Driver-free. columns maps logical cursor keys to the table’s field keys, as in toDrizzleRqbKeyset. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
RqbV1KeysetOperators |
The operators the RQB v1 where callback needs for a keyset seek. |
RqbV1OrderOperators |
The operators the RQB v1 orderBy callback needs (asc/desc). |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
DrizzleRqbKeyset |
|
DrizzleRqbV1Keyset |
|
RqbKeysetCondition |
A single column’s RQBv2 keyset condition ({ eq | gt | lt: value }). |
RqbKeysetWhere |
The RQBv2 where shape this keyset emits: an OR of ANDed column seeks. |