Skip to content

Graphorin API reference v0.1.0


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

Function: rekeyDatabase()

ts
function rekeyDatabase(options): Promise<RekeyDatabaseResult>;

Defined in: packages/store-sqlite-encrypted/src/rekey.ts:61

Re-keys an encrypted SQLite database. Throws if the file is missing, the cipher peer cannot be loaded, the old passphrase is wrong (the cipher peer raises SQLITE_NOTADB on the first read), or the post-rekey integrity check fails.

Parameters

ParameterType
optionsRekeyDatabaseOptions

Returns

Promise&lt;RekeyDatabaseResult&gt;

Stable