Skip to content

pgFlagsTable

function pgFlagsTable(name, opts?): DrizzleKvTable;

Defined in: drizzle/pg.ts:42

Build the Drizzle pgTable for the flags KV store. Base columns are fixed — key text PRIMARY KEY, value jsonb NOT NULL — and required by createDrizzleStorage; schema/extraColumns/extraIndexes extend it. The key keeps the plain text type of earlier releases, so existing schemas see no drizzle-kit diff; prefix queries are exact either way.

Parameter Type
name string
opts? PgKvTableOptions

DrizzleKvTable