Major version update. Major bugfixes. Security vulnerabilites fixed

This commit is contained in:
2026-10-14 03:02:07 +01:00
parent 4e47bd8ce0
commit 7c095f6f16
112 changed files with 2479 additions and 1219 deletions
+25
View File
@@ -0,0 +1,25 @@
export declare const ExportArchiveMembers: {
readonly DbFileName: "database.sqlite";
readonly SchemaFileName: "schema";
};
export type ExportArchiveContents = {
db: Uint8Array;
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;
export declare function isSQLiteFile(bytes: Uint8Array): boolean;
/**
* Create a portable export archive (tar / tar.gz / zip) with the database
* file + 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>;