13 lines
351 B
TypeScript
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 {};
|