Skip to content

@xtandard/kit/drizzle/pg

@xtandard/kit/drizzle/pg — the Postgres KV table factory pgKvTable(name, opts) and the textC (text COLLATE "C") column helper. Schema-only; requires drizzle-orm.

import { … } from "@xtandard/kit/drizzle/pg";
Name Summary
pgKvTable Build a Drizzle pgTable for the KV storage: key text COLLATE "C" PRIMARY KEY (or plain text with keyCollation: null), value jsonb NOT NULL, extended by schema/extraColumns/extraIndexes. name is required (products pass their persisted table name; ADR 0005).
Name Summary
PgKvTableOptions Options for pgKvTable.
Name Summary
PgKvColumns The self passed to a PgKvTableOptions.extraIndexes callback.
Name Summary
textC A text COLLATE "C" column: bytewise ordering and case-sensitive, index-usable LIKE prefixes whatever the database’s default collation.
Name Documented on
DrizzleKvTable @xtandard/kit/drizzle/mysql