pgKvTable
function pgKvTable(name, opts?): DrizzleKvTable;Defined in: src/drizzle/pg.ts:77
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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
opts? |
PgKvTableOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { pgKvTable } from "@xtandard/kit/drizzle/pg";export const kv = pgKvTable("xtandard_kv");