Skip to main content

Function: assertSqliteDatabaseIntegrity()

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

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

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.