Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-sqlite v0.1.5

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:03

mojo-sqlite-public v0.1.5

Released: 2026-11-08 · Commit: 524ebbc · Previous: v0.1.4

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) PASS: mojo-sqlite-0.1.5-hb0f4dca_0.conda

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • 524ebbc build: bump version to 0.1.5
  • eca3fb7 build: recipe pins mojo-compiler to the build's minor

mojo-sqlite v0.1.4

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:41

mojo-sqlite-public v0.1.4

Released: 2026-11-07 · Tag: v0.1.4 · Previous: v0.1.3

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • Docs only: CHANGELOG names no home path.

Changes

Changed

  • CHANGELOG.md and the release notes name no home path.

Verified

Check Result
mojo-lib-audit on this tree PASS
gh-publish --check (ci-local) OK

Known limits

Upgrade / run

None: no code or API change.

Commits

git log v0.1.3..v0.1.4

mojo-sqlite v0.1.3

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:36

mojo-sqlite-public v0.1.3

Released: 2026-11-04 · Commit: 779d902 · Previous: v0.1.2

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • README has an install and quickstart block with one example; a conda recipe ships the package.

Changes

Added

  • recipe.yaml: a conda package recipe.
  • CI, latest-release and license badges in the README.

Changed

  • README: one install and quickstart block, one example.

Verified

Check Result
ci-local at 779d902: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 PASS

Known limits

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • 779d902 fix(release): pyproject.toml, recipe.yaml, uv.lock say 0.1.3
  • 953d780 build: conda recipe
  • 82c9fcf docs: one example, one install block
  • 997b7cb docs: install and quickstart block
  • b065654 fix(release): pyproject and uv.lock say 0.1.2, the version of the latest tag
  • 779cae6 docs: CI, latest-release and license badges

mojo-sqlite v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:10

mojo-sqlite v0.1.2

Released: 2026-10-29 · Commit: 7a63810 · Previous: v0.1.1

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • Builds and runs on the stable Mojo 1.2.0 release.

Changes

Changed

  • The pin moves to Mojo 1.2.0 (pyproject.toml, uv.lock); README and skill say Mojo 1.2.

Verified

Check Result
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 PASS

Known limits

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • 7a63810 build: Mojo 1.2.0
  • ae91e6b docs: NOTICE names the owner and contact

mojo-sqlite v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 09:24

mojo-sqlite v0.1.1

Released: 2026-10-21 · Commit: the one tagged v0.1.1 · Previous: v0.1.0

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • Database(path, read_only=True) opens an existing database for reading only.

Changes

Added

  • read_only=True on Database: opens with SQLITE_OPEN_READONLY. A write raises
    (attempt to write a readonly database), and a missing file raises instead of being
    created. Useful beside another process that owns the file, for example a monitor
    reading a live job database.

Verified

Check Result
scripts/check.sh: oracle on 39 statements, api test (now with read_only asserts), example PASS all
tests/api.mojo read_only: read works, write raises, missing file raises and is not created pass

Known limits

  • Linux only (libsqlite3.so.0), as in v0.1.0.

Upgrade / run

git pull && uv sync

No API change for existing code: read_only defaults to False.

Commits

  • v0.1.1 feat(sqlite): v0.1.1, Database(read_only=True)

mojo-sqlite v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 05:17

mojo-sqlite v0.1.0

Released: 2026-10-21 · Commit: 6798b4c · Previous: first release

What it does

SQLite for Mojo that returns the same rows as Python's sqlite3, byte for byte, and
runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system
libsqlite3.so.0 at run time, so it needs no linker flags.

from sqlite import Database

def main() raises:
    var db = Database("jobs.db")
    var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?")
    q.bind(1, 10)
    while q.step():
        print(q.int(0), q.text(1))

Highlights

  • Database and Statement: prepare once, bind, step, reset, transactions, typed reads.
  • Every SQLite value type: integers, floats, text, BLOBs, NULL; parameters by position
    or by name (:prio, @prio, $prio).
  • text_view() and blob_view() read in place from sqlite's buffer, with no copy.
  • Errors carry sqlite's own message: sqlite: UNIQUE constraint failed: u.k (rc 19).
  • Docs in docs/, a skill file for coding agents in skills/mojo-sqlite/SKILL.md.
    Apache-2.0.

Changes

First public release, no earlier version.

Verified

Check Result
oracle: every tests/cases/*.sql through this library and Python sqlite3 identical on 39 statements, floats compared bit for bit, BLOBs as hex
tests/api.mojo: lifetimes, bind slots, empty BLOB vs NULL, named parameters, errors, reuse pass
scripts/ci.sh on a pristine Ubuntu 24.04 VM, sqlite 3.45.1 PASS all
same on Arch Linux, sqlite 3.54.0 PASS all
tests/bench.mojo vs Python, 200k inserts + scan, 3 runs insert 80 to 84 ms vs 216 to 226 ms; scan 25 ms (18 ms with text_view) vs 98 to 99 ms

Known limits

  • Linux only: the library is loaded as libsqlite3.so.0.
  • One connection per Database; do not share a Database or Statement across threads.
  • No Mojo package registry yet: install from source, a precompiled .mojoc, or by vendoring.

Upgrade / run

git clone https://github.com/amarbaro/mojo-sqlite && cd mojo-sqlite && uv sync
mojo run -I src examples/quickstart.mojo

Commits

  • 6798b4c ci: GitHub Actions runs scripts/ci.sh, badge, Apache-2.0 in pyproject
  • e4b3eed feat(sqlite): BLOBs and named parameters
  • 4d2ed99 feat(sqlite): SQLite bindings for Mojo, oracle-checked against Python sqlite3