SqliteBackend over @sqlite.org/sqlite-wasm's capi + oo1 layer.
The consumer owns module initialization (one sqlite3InitModule per app - their build toolchain's import) and hands the initialized module to connect. Statements use the oo1 Stmt (prepare/bind/step/ get/reset - get converts values to JS, int64 included when it fits a double); hooks use the raw capi against db.pointer, where the _js variants of preupdate_old/new convert values for us.
JS numbers cannot carry int64 beyond 2^53; such values lose precision on this platform (the JVM keeps full longs).
SqliteBackend over @sqlite.org/sqlite-wasm's capi + oo1 layer. The consumer owns module initialization (one sqlite3InitModule per app - their build toolchain's import) and hands the initialized module to connect. Statements use the oo1 Stmt (prepare/bind/step/ get/reset - get converts values to JS, int64 included when it fits a double); hooks use the raw capi against db.pointer, where the _js variants of preupdate_old/new convert values for us. JS numbers cannot carry int64 beyond 2^53; such values lose precision on this platform (the JVM keeps full longs).
(connect sqlite3)(connect sqlite3 uri)Adapt one connection; uri defaults to in-memory. sqlite3 is the initialized module object (await sqlite3InitModule()).
Adapt one connection; uri defaults to in-memory. sqlite3 is the initialized module object (await sqlite3InitModule()).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |