Skip to content

DataExportDeps

Defined in: packages/client/src/export-data.ts:114

The dependencies performDataExport needs from the owning client — narrow, so it is unit-testable.

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: 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.

Promise<void>


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: () => Promise<MutationDiagnostics>

Defined in: packages/client/src/export-data.ts:118

The Mutation diagnostics seam (client.diagnostics().mutation / readMutationStats).

Promise<MutationDiagnostics>


optional storePath?: 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: 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.