Skip to content

createPostgresStorage

function createPostgresStorage(options?): PostgresWebhooksStorage;

Defined in: src/storage/postgres.ts:46

Create a Postgres-backed PostgresWebhooksStorage. The table is created on first use.

Parameter Type
options? PostgresStorageOptions

PostgresWebhooksStorage

import { createPostgresStorage } from "@xtandard/webhooks/storage/postgres";
const storage = createPostgresStorage({ connectionString: process.env.DATABASE_URL });