Interface IDatabaseExporter

Database export abstraction.

SQLite: VACUUM INTO or db.export(). Postgres: pg_dump via child_process.

interface IDatabaseExporter {
    exportToFile(outputPath: string): Promise<void>;
    exportToBytes(): Promise<Uint8Array>;
}

Implemented by

Methods

  • Export the full database to a file at the given path.

    Parameters

    • outputPath: string

    Returns Promise<void>