@xtandard/lib/pagination/sql-tag
Keyset adapter for tagged-template SQL clients (postgres.js, Bun.sql): portable keyset
predicates and ordering as fragments of your sql, with no driver dependency.
import { … } from "@xtandard/lib/pagination/sql-tag";Functions
Section titled “Functions”| Name | Summary |
|---|---|
toSqlTagKeyset |
Create a keyset adapter for a tagged-template SQL client (postgres.js, or Bun.sql on any of its adapters): portable keyset predicates and ordering rendered as fragments of your sql, to embed in your own query. Cursor values are always parameters. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
SqlTagKeyset |
Keyset renderers bound to one sql tag; see toSqlTagKeyset. |
SqlTagKeysetColumns |
Logical keyset key → SqlTagTarget (a column string or a fragment of your sql). |