/** * BackupWriter (v3.x) * * Exports a profile's database as a platform-agnostic SQL dump containing * `CREATE TABLE` + `INSERT INTO ...` statements. MVP supports sqlite, mysql, * postgresql. Other adapters fall back to schema-only (CREATE TABLE) and * emit a structured warning. * * v3.x BACKWARD COMPATIBILITY NOTE: For SQLite we use `sqlite_master` to * read DDL; for MySQL/PostgreSQL we use `SHOW TABLES` + `SHOW CREATE TABLE` * via the existing DbAdapter.executeQuery interface — no engine-level access. * Streaming: rows are pulled one chunk at a time via LIMIT/OFFSET pagination. */ import type { ProfileManager } from './profile-manager.js'; export interface BackupOptions { /** Only dump schema, skip data */ schemaOnly?: boolean; /** Tables to include; default = all */ tables?: string[]; } export interface BackupResult { content: string; bytes: number; tables: string[]; kind: 'full' | 'schema-only' | 'unsupported'; warnings?: string[]; } /** Get list of tables in a profile via sqlite_master or information_schema. */ export declare function listTables(profile: ProfileManager, profileName: string): Promise; export declare class BackupWriter { /** * Dump a profile's database as SQL text. * For unsupported adapters throws an error (caller may retry with schemaOnly). */ static dump(pm: ProfileManager, profileName: string, opts?: BackupOptions): Promise; } //# sourceMappingURL=backup-writer.d.ts.map