22 lines
734 B
TypeScript
22 lines
734 B
TypeScript
export declare const ExportArchiveMembers: {
|
|
readonly SqlFileName: "dump.sql";
|
|
readonly SchemaFileName: "schema.ts";
|
|
};
|
|
export type ExportArchiveContents = {
|
|
sql: string;
|
|
schemaTs: 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.ts.
|
|
*/
|
|
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>;
|