Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/store-sqlite-encrypted / createEncryptedConnection
Function: createEncryptedConnection()
ts
function createEncryptedConnection(options): Promise<SqliteConnection>;Defined in: packages/store-sqlite-encrypted/src/connection.ts:35
Opens an encrypted SQLite connection. Differs from openConnection only in that the cipher peer driver is preloaded — callers that supply an encryption.passphraseResolver get the same behaviour as openConnection({ encryption }) plus an explicit fail-fast on a missing cipher peer.
Parameters
| Parameter | Type |
|---|---|
options | OpenConnectionOptions |
Returns
Promise<SqliteConnection>