Skip to content

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).

Parameter Type
name string
opts? PgKvTableOptions

DrizzleKvTable

import { pgKvTable } from "@xtandard/kit/drizzle/pg";
export const kv = pgKvTable("xtandard_kv");