SessionOptions
Defined in: libs/session/src/session.ts:68
How a session opens its store.
Member summary
Section titled “Member summary”Properties
| Name | Description |
|---|---|
| busyTimeoutMs? | How long a write waits for another connection’s lock before it is refused as locked. |
| openDatabase? | How the store is opened. |
Properties
Section titled “Properties”busyTimeoutMs?
Section titled “busyTimeoutMs?”
readonlyoptionalbusyTimeoutMs?:number
Defined in: libs/session/src/session.ts:70
How long a write waits for another connection’s lock before it is refused as locked. Default 5000.
openDatabase?
Section titled “openDatabase?”
readonlyoptionalopenDatabase?:SqliteOpener
Defined in: libs/session/src/session.ts:76
How the store is opened. The default is Node’s node:sqlite; a browser passes the runtime’s WASM opener
(openWasmSqlite from @typedblite/runtime/wasm), so the same session runs there, with the same classifier and the
same refusals.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.