Skip to content

Graphorin API reference v0.1.0


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:35

Runs PRAGMA cipher_integrity_check against the provided connection. The connection MUST already be open with the cipher key applied (typically via createEncryptedConnection).

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