Skip to main content

Function: assertSqliteDatabaseIntegrity()

function assertSqliteDatabaseIntegrity(args: {
filePath: string;
mode?: SqliteIntegrityCheckMode;
}): void;

Defined in: electron/services/database/utils/backup/databaseBackup.ts:161

Asserts that the SQLite database file passes an integrity check.

Parameters​

args​

filePath​

string

mode?​

SqliteIntegrityCheckMode

Returns​

void

Remarks​

This is intended for validating untrusted external backups before they are swapped into the live database path.