Files
bun-sqlite/dist/utils/snapshot-db.d.ts
T

13 lines
351 B
TypeScript

import type { Database } from "bun:sqlite";
type Params = {
db: Database;
dst: string;
};
/**
* # Write a consistent copy of the database to `dst`
* @description Uses `VACUUM INTO`, which includes changes still in the WAL
* file (a plain file copy misses them).
*/
export default function snapshotDb({ db, dst }: Params): void;
export {};