Skip to content
English

LazyStoreConfig

Defined in: src/persistence/LazyStore.ts:4

Wiring every lazily-opened persistence store needs, whatever it connects to.

TResource

readonly ownsResource: boolean

Defined in: src/persistence/LazyStore.ts:18

Whether this store opened the resource itself. An injected pool or client — shared across the journal, snapshot and durable-state stores by the register helpers, or a fake in tests — is owned by the caller, and releasing it here would tear it out from under the siblings.


readonly storeName: string

Defined in: src/persistence/LazyStore.ts:11

Concrete store name ('PostgresJournal', 'MongoJournal'), used to prefix every error message. Errors name the store the caller actually constructed rather than the shared base, which is what makes a stack-free log line useful.

openResource(): Promise<TResource>

Defined in: src/persistence/LazyStore.ts:20

Open the pool / client / connection. Called once, lazily, on first use.

Promise<TResource>