src/index.ts
46 lines and 0 functions in DrDustinEdwards/d1-dump, at commit e15f966 on 2026-10-23. This file on GitHub.
Functions
None: it only declares types or values.
Imports
It imports src/backup.ts, src/drill.ts, src/dump.ts, src/restore.ts, src/runs.ts, src/schema.ts, src/types.ts. No module of this repo imports it.
Source
export {
COMPLETE_MARKER,
DEFAULT_PREFIX,
SCHEMA_SIDECAR,
dumpDatabase,
runIdFor,
writeCompleteMarker,
type CompleteMarker,
type DumpOptions,
type DumpResult,
type DumpedTable,
type PagedTable,
type SchemaSidecar,
} from "./dump.js";
export { BackupIncomplete, runCheckedBackup, standardProblems, type BackupOptions, type BackupResult } from "./backup.js";
export { restoreDump, type RestoreOptions, type RestoreResult } from "./restore.js";
export {
DEFAULT_MIN_KEPT,
DEFAULT_RETENTION,
DEFAULT_RETENTION_DAYS,
DEFAULT_STALE_HOURS,
backupHealth,
latestDump,
pruneDumps,
selectStaleRuns,
type RunRef,
type SelectOptions,
type BackupHealth,
type LatestDump,
type PruneResult,
type RetentionPolicy,
} from "./runs.js";
export { readPlan, type FtsMode, type FtsTable, type Plan, type SchemaEntry } from "./schema.js";
export type { D1Like, D1Statement, R2Like } from "./types.js";
export {
D1_MAX_STATEMENT_BYTES,
SCRATCH_PREFIX,
guardStatements,
runRestoreDrill,
scratchName,
type DrillCheck,
type DrillOptions,
type DrillResult,
type Scratch,
type StatementStats,
} from "./drill.js";