Fast, native bindings to SQLite3 C API, using Deno FFI.
import { Database } from "https://deno.land/x/sqlite3@0.4.2/mod.ts";
const db = new Database("test.db");
const [version] = db.queryArray("select sqlite_version()")[0];
console.log(version);
db.close();
Check out the documentation here.
By default, this module will look for existing SQLite3 dynamic library on your
path, which is sqlite3.dll
on Windows, libsqlite3.so
on Linux, and
libsqlite3.dylib
on macOS. If the library you want to use is not on path, then
you can use the DENO_SQLITE_PATH
environment variable. You will have to
install SQLite3 separately if it's not already installed, since it is not
bundled with this module.
- x/sqlite, WASM based.
- async-sqlite3, asynchronous
SQLite3 bindings using
rusqlite
.
Check LICENSE for details.
Copyright © 2022 DjDeveloperr