@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";Functions
Section titled “Functions”| 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). |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
PgKvTableOptions |
Options for pgKvTable. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
PgKvColumns |
The self passed to a PgKvTableOptions.extraIndexes callback. |
Variables
Section titled “Variables”| Name | Summary |
|---|---|
textC |
A text COLLATE "C" column: bytewise ordering and case-sensitive, index-usable LIKE prefixes whatever the database’s default collation. |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
DrizzleKvTable |
@xtandard/kit/drizzle/mysql |