Repository navigation
Releases
mojo-sqlite v0.1.5
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-compilerto 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-compilerrun 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
524ebbcbuild: bump version to 0.1.5eca3fb7build: recipe pins mojo-compiler to the build's minor
mojo-sqlite v0.1.4
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.mdand 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
- As in v0.1.3.
Upgrade / run
None: no code or API change.
Commits
git log v0.1.3..v0.1.4
mojo-sqlite v0.1.3
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
- As in v0.1.2.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
779d902fix(release): pyproject.toml, recipe.yaml, uv.lock say 0.1.3953d780build: conda recipe82c9fcfdocs: one example, one install block997b7cbdocs: install and quickstart blockb065654fix(release): pyproject and uv.lock say 0.1.2, the version of the latest tag779cae6docs: CI, latest-release and license badges
mojo-sqlite v0.1.2
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
- As in v0.1.1.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
7a63810build: Mojo 1.2.0ae91e6bdocs: NOTICE names the owner and contact
mojo-sqlite v0.1.1
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=TrueonDatabase: 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.1feat(sqlite): v0.1.1, Database(read_only=True)
mojo-sqlite v0.1.0
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
DatabaseandStatement: 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()andblob_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 inskills/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 aDatabaseorStatementacross 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
6798b4cci: GitHub Actions runs scripts/ci.sh, badge, Apache-2.0 in pyprojecte4b3eedfeat(sqlite): BLOBs and named parameters4d2ed99feat(sqlite): SQLite bindings for Mojo, oracle-checked against Python sqlite3