Available

amalgame-sqlite

Embedded SQLite 3, public domain, zero system deps.

amc package add sqlite GitHub ↗ ← Back to the ecosystem

Overview

Direct binding to SQLite 3 vendored inside the package. No system library to install — the SQLite C code is compiled alongside your binary. Ideal for single-node apps, local development, and anything that does not need a separate DB server.

Features

  • Database.Open(path), Prepare(sql), Bind, Step, Fetch API
  • Explicit transactions via BEGIN / COMMIT / ROLLBACK
  • WAL and rollback journaling modes
  • Public domain — no license friction
  • Vendored: a single amc package add sqlite and it compiles

Example

Minimal usage example — copy-paste runnable after install.

amc package add sqlite

let db = Database.Open("data.db")
db.Exec("CREATE TABLE users (id INT, name TEXT)")
db.Exec("INSERT INTO users VALUES (1, 'Alice')")
let rows = db.Query("SELECT * FROM users")

At a glance

Related packages