콘텐츠로 이동
한국어

PostgresJournalOptions

이 콘텐츠는 아직 번역되지 않았습니다.

Defined in: src/persistence/journals/PostgresJournal.ts:14

Connection options shared by all three Postgres stores.

readonly optional autoCreateTables?: boolean

Defined in: src/persistence/journals/PostgresJournal.ts:20

Run CREATE TABLE IF NOT EXISTS on first use. Default: true.


readonly optional eventsTable?: string

Defined in: src/persistence/journals/PostgresJournal.ts:16

Events table name. Default: events.


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.

PostgresConnection.pool


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 } }.

PostgresConnection.poolConfig


readonly optional tagsTable?: string

Defined in: src/persistence/journals/PostgresJournal.ts:18

Tags join table name. Default: ${eventsTable}_tags.


readonly optional url?: string

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

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

PostgresConnection.url