Elide 1.0.0-alpha10 Help

SQLite in JavaScript

Elide embeds native support for SQLite3, with bindings into JavaScript. The API provided is identical to Bun's SQLite bindings.

import { Database } from "elide:sqlite"
const { Database } = require("elide:sqlite")
import { Database } from "elide:sqlite" const db = new Database() db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY, name TEXT);") db.exec("INSERT INTO test (name) VALUES ('foo');") db.query("SELECT * FROM test;").get()["name"] // 'foo'

SQLite Examples

Coming soon.

sqlite | Classes

Database

🟢 Supported.

Last modified: 24 June 2024