@vlcn.io/crsqlite-allinone
v0.15.2
Published
CR-SQLite loadable extension
Downloads
96
Readme
@vlcn.io/crsqlite-allinone
A package for node & deno that provides a sqlite3
library in addition to the crsqlite
extension. It also exposes the same interface to node/deno that is exposed to the browser via the @vlcn.io/crsqlite-wasm
package, allowing you to share abstractions between the client and server.
If you are already using a sqlite3
package (e.g., better-sqlite3
) you can use @vlcn.io/crsqlite
and load it as shared a module via .loadModule
.
Example:
import SQLiteDB from "better-sqlite3";
import { extensionPath } from "@vlcn.io/crsqlite";
const db = new SQLiteDB(dbPath);
db.loadExtension(extensionPath);