LazyStoreConfig
このコンテンツはまだ日本語訳がありません。
Defined in: src/persistence/LazyStore.ts:4
Wiring every lazily-opened persistence store needs, whatever it connects to.
Type Parameters
Section titled “Type Parameters”TResource
Section titled “TResource”TResource
Properties
Section titled “Properties”ownsResource
Section titled “ownsResource”
readonlyownsResource: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.
storeName
Section titled “storeName”
readonlystoreName: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.
Methods
Section titled “Methods”openResource()
Section titled “openResource()”openResource():
Promise<TResource>
Defined in: src/persistence/LazyStore.ts:20
Open the pool / client / connection. Called once, lazily, on first use.
Returns
Section titled “Returns”Promise<TResource>
