Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/store-sqlite-encrypted / / cipherIntegrityCheck

Function: cipherIntegrityCheck()

ts
function cipherIntegrityCheck(conn): CipherIntegrityCheckResult;

Defined in: packages/store-sqlite-encrypted/src/integrity-check.ts:40

Runs PRAGMA integrity_check against the provided connection. The connection MUST already be open with the cipher key applied (typically via createEncryptedConnection) - a wrong key surfaces as an open/read error before the pragma runs.

The pragma is read-only so it is safe to run from a triggers daemon cron without taking a write lock.

Parameters

ParameterType
connSqliteConnection

Returns

CipherIntegrityCheckResult

Stable