@typedblite/runtime/wasm
The SQLite binding on the official WASM build, for a browser, a Web Worker, Electron or a Capacitor WebView
(ADR-009). Call initWasmSqlite once, then pass openWasmSqlite as openDatabase.
import { TypeDBLiteInterpreter } from '@typedblite/runtime';import { initWasmSqlite, openWasmSqlite } from '@typedblite/runtime/wasm';
await initWasmSqlite();const db = new TypeDBLiteInterpreter(':memory:', undefined, { openDatabase: openWasmSqlite });SQLite binding
Section titled “SQLite binding”Starting SQLite’s WASM build and opening a database with it, in memory or persisted to the Origin Private File System.
SqliteParameter
Section titled “SqliteParameter”Re-exports SqliteParameter
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.