DataExportDeps
Defined in: packages/client/src/export-data.ts:114
The dependencies performDataExport needs from the owning client — narrow, so it is unit-testable.
Properties
Section titled “Properties”cloneCleanupSql
Section titled “cloneCleanupSql”cloneCleanupSql:
string
Defined in: packages/client/src/export-data.ts:136
The clone-cleanup SQL (buildDataExportCloneCleanupSql) run on the throwaway clone before pg_dump -t,
dropping the reconcile triggers -t would otherwise pull into the artefact (referencing pgxsinkit
functions the export excludes). "" when the registry has no writable owning table.
enumHeaderSql
Section titled “enumHeaderSql”enumHeaderSql:
string
Defined in: packages/client/src/export-data.ts:130
The generated enum DDL header (buildDataExportEnumHeaderSql) — the CREATE TYPE statements for the
enums the exported tables reference, which pg_dump -t omits. "" when no exported table uses an enum.
flush: () =>
Promise<void>
Defined in: packages/client/src/export-data.ts:120
The optimistic flush (client.flush()), driven during the drain to send drainable rows.
Returns
Section titled “Returns”Promise<void>
pglite
Section titled “pglite”pglite:
Pick<ClientPGlite,"exec"|"dumpDataDir">
Defined in: packages/client/src/export-data.ts:116
The live store to checkpoint and dump (the clone source; the live engine is never suspended).
readMutationStats
Section titled “readMutationStats”readMutationStats: () =>
Promise<MutationDiagnostics>
Defined in: packages/client/src/export-data.ts:118
The Mutation diagnostics seam (client.diagnostics().mutation / readMutationStats).
Returns
Section titled “Returns”Promise<MutationDiagnostics>
storePath?
Section titled “storePath?”
optionalstorePath?:string
Defined in: packages/client/src/export-data.ts:142
The store’s configured plain store PATH (ADR-0036) — reduced to the storeId in the default artefact
file name. The resolved PGlite dataDir URL is deliberately NOT used: internal plumbing, never an
artefact-name seed.
syncedTableNames
Section titled “syncedTableNames”syncedTableNames:
string[]
Defined in: packages/client/src/export-data.ts:125
The -t allowlist: the schema-qualified physical synced table names, resolved from the registry by the
SAME projection the DDL generator uses (collectDataExportSyncedTableNames) — never re-derived here.