Skip to content
English

PostgresConnection

Defined in: src/persistence/journals/PostgresClient.ts:46

Connection options shared by all three Postgres stores.

readonly optional pool?: PgPoolLike

Defined in: src/persistence/journals/PostgresClient.ts:59

Pre-built pool — bypasses the lazy pg import entirely. Use to share ONE pool across the journal + snapshot + durable-state stores (see registerPostgresPlugins), or to inject a fake in tests.


readonly optional poolConfig?: Record<string, unknown>

Defined in: src/persistence/journals/PostgresClient.ts:53

Extra node-postgres Pool config, merged over { connectionString: url } — e.g. { max: 10, ssl: { rejectUnauthorized: false } }.


readonly optional url?: string

Defined in: src/persistence/journals/PostgresClient.ts:48

Connection string, e.g. postgres://user:pass@host:5432/db.