Files
bun-mariadb/dist/utils/export-archive.d.ts
T
2026-07-30 07:19:07 +01:00

24 lines
838 B
TypeScript

export declare const ExportArchiveMembers: {
readonly SqlFileName: "dump.sql";
readonly SchemaFileName: "schema";
};
export type ExportArchiveContents = {
sql: string;
schema: string;
/** Archive member basename, e.g. schema.ts / schema.json / schema.yaml */
schemaFileName: string;
};
export declare function isArchivePath(filePath: string): boolean;
export declare function isSqlPath(filePath: string): boolean;
/**
* Create a portable export archive (tar / tar.gz / zip) with dump.sql + schema file.
*/
export declare function writeExportArchive({ contents, outPath, }: {
contents: ExportArchiveContents;
outPath: string;
}): Promise<void>;
/**
* Read a portable export archive (tar / tar.gz / zip).
*/
export declare function readExportArchive(archivePath: string): Promise<ExportArchiveContents>;