This commit is contained in:
2026-07-30 07:19:07 +01:00
parent 246c42a214
commit 0420d50f15
43 changed files with 1942 additions and 219 deletions
+5 -3
View File
@@ -1,15 +1,17 @@
export declare const ExportArchiveMembers: {
readonly SqlFileName: "dump.sql";
readonly SchemaFileName: "schema.ts";
readonly SchemaFileName: "schema";
};
export type ExportArchiveContents = {
sql: string;
schemaTs: 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.ts.
* Create a portable export archive (tar / tar.gz / zip) with dump.sql + schema file.
*/
export declare function writeExportArchive({ contents, outPath, }: {
contents: ExportArchiveContents;