Skip to content

SessionOptions

Defined in: libs/session/src/session.ts:68

How a session opens its store.

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.

readonly optional busyTimeoutMs?: 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.


readonly optional openDatabase?: 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.