Skip to main content

deno_sqlite

Fast, native bindings to SQLite3 C API, using Deno FFI.

import { Database } from "https://deno.land/x/sqlite3@0.0.1/mod.ts";

const db = new Database("test.db");

const [version] = db.queryArray("select sqlite_version()")[0];
console.log(version);

db.close();

Documentation

Check out the documentation here.

Native Library

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.

License

Check LICENSE for details.

Copyright (c) 2021 DjDeveloperr