Skip to content

storeIndexedDbDatabaseName

storeIndexedDbDatabaseName(storePath): string

Defined in: packages/client/src/store-path.ts:326

The IndexedDB database name a browser store occupies (ADR-0036) — a browser-only OPERATIONAL helper for orphan GC / corrupt-store deletion (indexedDB.deleteDatabase(...)), NOT part of the create path. pgwasm maps idb://<storePath> to the IndexedDB database /pgwasm/<storePath> (the IDBFS mount point: its root /pgwasm joined with the path after the scheme), and the name comes from @pgxsinkit/pgwasm-c’s own idbDatabaseName, never re-encoded here. Exposed so a consumer that GCs its own stores routes that pgwasm-internal naming knowledge through the library rather than re-deriving the prefix itself. Rejects a scheme-bearing/empty path exactly as resolveStoreDataDir does, so the two stay in lockstep.

string

string