@xtandard/webhooks/drizzle/pg
Postgres Drizzle table factory for the webhooks KV store: pgWebhooksTable()
puts the table in your Drizzle schema and migrations. Schema-only.
import { … } from "@xtandard/webhooks/drizzle/pg";Functions
Section titled “Functions”| Name | Summary |
|---|---|
pgWebhooksTable |
Build the Drizzle pgTable for the webhooks KV store. Base columns are fixed — key text PRIMARY KEY, value jsonb NOT NULL — and required by createDrizzleStorage; schema/extraColumns/extraIndexes extend it. The table name defaults to "xtandard_webhooks". 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 |
|---|---|
PgWebhooksTableOptions |
Options for pgWebhooksTable: 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). |