Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/store-sqlite-encrypted / encryptDatabase
Function: encryptDatabase()
ts
function encryptDatabase(options): Promise<EncryptDatabaseResult>;Defined in: packages/store-sqlite-encrypted/src/encrypt.ts:80
Encrypts an unencrypted SQLite database. Returns once the target file has been written and verified. Throws if the source is missing, the target already exists (and overwriteTarget is unset), the cipher peer is missing, or the integrity check fails.
Parameters
| Parameter | Type |
|---|---|
options | EncryptDatabaseOptions |
Returns
Promise<EncryptDatabaseResult>