deriveStoreId
deriveStoreId(
storePath):string
Defined in: packages/client/src/export-store.ts:190
Reduce a plain store PATH (ADR-0036) to a filesystem-safe token for the backup file name. Takes the
path’s LAST segment (as PGlite’s own dumpDataDir does when it names the inner db), then keeps only
[A-Za-z0-9._-]. No scheme stripping — the store path is a plain name, never a storage URL. Falls back
to a fixed token for an empty path so the name is always well formed.
Parameters
Section titled “Parameters”storePath
Section titled “storePath”string | undefined
Returns
Section titled “Returns”string