@xtandard/webhooks/storage/postgres
Postgres storage: createPostgresStorage() keeps a single jsonb key/value
table, created on first use. Works with pg or PGlite.
import { … } from "@xtandard/webhooks/storage/postgres";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createPostgresStorage |
Create a Postgres-backed PostgresWebhooksStorage. The table is created on first use. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
PostgresStorageOptions |
Options for createPostgresStorage. table defaults to "xtandard_webhooks". |
PostgresWebhooksStorage |
A compare-and-swap capable WebhooksStorage backed by Postgres, plus a close() method that ends the underlying pool — but only the one this adapter created. A client you passed in is left for you to manage. |