Skip to content

PostgresStorageOptions

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

Options for createPostgresStorage.

Property Type Description Defined in
client? SqlClient A pre-built client (pg Pool/Client, PGlite, …). Never closed by the driver. src/storage/postgres.ts:46
connectionString? string Connection string used to create a pg Pool lazily when no client is given. src/storage/postgres.ts:48
subpath? string The import path to name in error messages (a missing peer, a missing client/url…), e.g. "@xtandard/webhooks/storage/postgres" when a product re-exports this driver. Default: the kit subpath. src/storage/postgres.ts:44
table? string Table name (default "xtandard_kv"; products pass theirs). Must be a safe SQL identifier. src/storage/postgres.ts:52
url? string Alias for PostgresStorageOptions.connectionString. src/storage/postgres.ts:50