Skip to content

WasmSqliteOptions

Defined in: libs/runtime/src/wasm.ts:63

How initWasmSqlite starts SQLite.

Properties

Name Description
moduleOptions? Emscripten module options, for example locateFile when the .wasm is served from a URL.
sahPool? Persist to the Origin Private File System through the SAH-pool VFS.

readonly optional moduleOptions?: Record<string, unknown>

Defined in: libs/runtime/src/wasm.ts:65

Emscripten module options, for example locateFile when the .wasm is served from a URL.


readonly optional sahPool?: object

Defined in: libs/runtime/src/wasm.ts:71

Persist to the Origin Private File System through the SAH-pool VFS. Worker-only. It needs no SharedArrayBuffer, so no COOP/COEP headers. When set, every path opens in OPFS and persists; when absent, a path opens in SQLite’s in-memory memdb (see openWasmSqlite).

readonly optional clearOnInit?: boolean

readonly optional directory?: string

readonly optional name?: string

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.