@xtandard/flags/drizzle/pg
Postgres table factory for the Drizzle storage adapter: pgFlagsTable puts the
flags key/value table in your Drizzle schema and migrations. Schema-only.
Optional peer dependency: drizzle-orm.
Entry point for the @xtandard/flags/drizzle/pg subpath export.
import { … } from "@xtandard/flags/drizzle/pg";Functions
Section titled “Functions”| Name | Summary |
|---|---|
pgFlagsTable |
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. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
PgFlagsTableOptions |
Options for pgFlagsTable: schema (Postgres namespace; default the public schema), extraColumns, extraIndexes, and keyCollation (default null: a plain text key, as every earlier release; "C" for bytewise, index-usable prefixes on new tables). |