Skip to content

PgKvTableOptions

Defined in: src/drizzle/pg.ts:45

Options for pgKvTable.

Property Type Description Defined in
extraColumns? () => Record<string, PgColumnBuilderBase> Additional columns merged into the table (e.g. a tenant discriminator). src/drizzle/pg.ts:60
extraIndexes? (table) => PgTableExtraConfigValue[] Additional indexes/constraints; receives the built columns. src/drizzle/pg.ts:62
keyCollation? "C" | null Collation of the key column. "C" (default) is bytewise and case-sensitive, with index-usable LIKE prefixes. null keeps a plain text column: products whose existing table was declared that way pass it, so drizzle-kit doesn’t generate an ALTER for every existing deployment (ADR 0005). The driver stays correct either way, because prefix queries are post-filtered with an exact startsWith. Migration SQL to switch an existing table: ALTER TABLE <name> ALTER COLUMN key TYPE text COLLATE "C"; src/drizzle/pg.ts:58
schema? string Postgres schema (namespace) for the table. Defaults to the search path (public). src/drizzle/pg.ts:47