Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/store-sqlite / connection / OpenConnectionOptions
Interface: OpenConnectionOptions
Defined in: packages/store-sqlite/src/connection.ts:103
Options for openConnection.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
cipherLoader? | readonly | () => Promise<BetterSqlite3Constructor> | Internal Optional cipher-driver loader override. When encryption.enabled is true and the operator does not pass driver, this loader is consulted instead of the canonical import('./encryption/index.js').loadCipherDriver. Used by the test suite to simulate a missing cipher peer without uninstalling the package from the workspace. | packages/store-sqlite/src/connection.ts:140 |
disableWalHardening? | readonly | boolean | If true, do not apply the WAL hardening pragmas. The runner still applies foreign_keys=ON and busy_timeout so the migration step works against :memory: databases. Off by default. | packages/store-sqlite/src/connection.ts:129 |
driver? | readonly | BetterSqlite3Constructor | Override the constructor used to open the underlying database. Used by the test suite to inject a stub. When unset the connection lazily loads better-sqlite3 (or the cipher peer when encryption is enabled) at first call. | packages/store-sqlite/src/connection.ts:118 |
encryption? | readonly | EncryptionConfig | Optional encryption-at-rest configuration. Default: disabled. | packages/store-sqlite/src/connection.ts:106 |
loadVecExtension? | readonly | (db) => void | Override the sqlite-vec load(db) helper. Used by the test suite to verify the loader is invoked without a native build. | packages/store-sqlite/src/connection.ts:123 |
path | readonly | string | - | packages/store-sqlite/src/connection.ts:104 |
skipSqliteVec? | readonly | boolean | If true, skip loading the sqlite-vec extension. Used by tests that exercise the migration runner without the vector adapter. | packages/store-sqlite/src/connection.ts:111 |