storeIndexedDbDatabaseName
storeIndexedDbDatabaseName(
storePath):string
Defined in: packages/client/src/store-path.ts:312
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. PGlite
maps idb://<storePath> to the IndexedDB database /pglite/<storePath> (its WASM_PREFIX /pglite
joined with the path after the scheme; verified against @electric-sql/pglite 0.5.4 dist). Exposed so a
consumer that GCs its own stores routes that PGlite-internal naming knowledge through the library rather
than re-deriving the /pglite/ prefix itself. Rejects a scheme-bearing/empty path exactly as
resolveStoreDataDir does, so the two stay in lockstep.
Parameters
Section titled “Parameters”storePath
Section titled “storePath”string
Returns
Section titled “Returns”string