createPostgresStorage
function createPostgresStorage(options?): PostgresWebhooksStorage;Defined in: src/storage/postgres.ts:46
Create a Postgres-backed PostgresWebhooksStorage. The table is created on first use.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
PostgresStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createPostgresStorage } from "@xtandard/webhooks/storage/postgres";
const storage = createPostgresStorage({ connectionString: process.env.DATABASE_URL });