Skip to main content

Function: readDatabaseSchemaVersionFromFile()

readDatabaseSchemaVersionFromFile(filePath: string): number

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

Reads the SQLite PRAGMA user_version from a database file.

Parameters

filePath

string

Returns

number

Remarks

Used when validating/annotating externally-provided backup payloads, where the schema version may differ from the currently running application.