DataExportOptions
Defined in: packages/client/src/export-data.ts:49
Options for SyncClient.exportData. Plain JSON — structured-clone-safe across the worker bridge.
Properties
Section titled “Properties”drainJournal?
Section titled “drainJournal?”
optionaldrainJournal?:DrainJournalOption
Defined in: packages/client/src/export-data.ts:60
The drain guard (ADR-0035 decision 3). Default { timeoutMs: 15_000 }: fail fast on non-drainable
states, else flush + await convergence up to the budget. false is the escape hatch — export synced
state as-is, skipping the drain entirely.
fileName?
Section titled “fileName?”
optionalfileName?:string
Defined in: packages/client/src/export-data.ts:54
Override the generated artefact file name. When omitted, the name is <storeId>-<timestamp>-data.sql,
where storeId is a filesystem-safe derivation of the store path (see deriveStoreId).