Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ on:
push:
branches: [main]
pull_request:
permissions:
contents: write # the badge step pushes the orphan `badges` branch (main pushes only)
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.3.0
- run: scripts/ci.sh
ci:
uses: amarbaro/mojo-libs/.github/workflows/lib-ci.yml@v1
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Full notes in `docs/releases/`. Newest first. Format: the release-note template.

- [v0.1.5](docs/releases/v0.1.5.md) (2026-11-08): packaging: compiler pin to build minor
- [v0.1.4](docs/releases/v0.1.4.md) (2026-11-07): docs: CHANGELOG names no home path
- [v0.1.3](docs/releases/v0.1.3.md) (2026-11-04): conda recipe, README install and quickstart block
- [v0.1.2](docs/releases/v0.1.2.md) (2026-10-29): builds on the stable Mojo 1.2.0 release
Expand Down
58 changes: 58 additions & 0 deletions docs/releases/v0.1.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# mojo-sqlite-public v0.1.5

**Released:** 2026-11-08 · **Commit:** `524ebbc` · **Previous:** [v0.1.4](v0.1.4.md)

## What it does

<!-- Stable description of the program. Carried forward from the previous note; edit only when the product itself changes.
3 to 6 lines: what it is, who uses it, where it runs (URL/port/binary), how to start it. -->
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.

```mojo
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

<!-- 1 to 5 bullets a user would notice. Lead with the benefit, not the implementation. -->
- 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`).

<!-- Delete empty subsections. One bullet per user-visible change; internal refactors go under Changed only if behaviour moved. -->

## Verified

<!-- DONE means a real check ran (global rule §18: the check named, not assumed). Name each check and its result. No check, no claim. -->
| Check | Result |
|---|---|
| `pkg-conda` dry run on the version commit (H1-H3,H6) | PASS: `mojo-sqlite-0.1.5-hb0f4dca_0.conda` |

## Known limits

<!-- Honest list: slow paths, unsupported cases, flaky upstreams, anything UNVERIFIED. -->
- Packages are built on one Mojo minor only; see the package protocol.

## Upgrade / run

<!-- Exact commands. Migrations, new deps, service restarts, config keys. "None" if nothing changed. -->
```
None: no API change.
```

## Commits

- `524ebbc` build: bump version to 0.1.5
- `eca3fb7` build: recipe pins mojo-compiler to the build's minor
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mojo-sqlite"
version = "0.1.4"
version = "0.1.5"
description = "SQLite bindings for Mojo, measured against Python sqlite3"
license = "Apache-2.0"
requires-python = ">=3.11,<3.15"
Expand Down
4 changes: 2 additions & 2 deletions recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rattler-build recipe, modular-community shape.
# Build locally: rattler-build build -r recipe.yaml -c https://conda.modular.com/max -c conda-forge
context:
version: 0.1.4
version: 0.1.5

package:
name: "mojo-sqlite"
Expand All @@ -21,7 +21,7 @@ requirements:
build:
- mojo-compiler >=1.2.0,<1.3
run:
- ${{ pin_compatible('mojo-compiler') }}
- ${{ pin_compatible('mojo-compiler', upper_bound='x.x') }} # .mojoc loads only on the minor it was built with

tests:
- script:
Expand Down
2 changes: 1 addition & 1 deletion scripts/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p .work
M=.venv/bin/mojo
M=${MOJO:-.venv/bin/mojo}
command -v python3 >/dev/null || { echo "FAIL setup: python3 (the oracle) not found"; exit 1; }
for sql in tests/cases/*.sql; do
$M run -I src tests/run_sql.mojo "$sql" > .work/mojo.out || { echo "FAIL run: $sql"; exit 1; }
Expand Down
6 changes: 5 additions & 1 deletion scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ cd "$(dirname "$0")/.."
command -v uv >/dev/null || { echo "FAIL setup: uv not installed"; exit 1; }
libs=$(ldconfig -p 2>/dev/null || true)
[[ "$libs" == *"libsqlite3.so.0 "* ]] || { echo "FAIL setup: libsqlite3.so.0 not found"; exit 1; }
uv sync || { echo "FAIL setup: uv sync"; exit 1; }
if [ -z "${MOJO:-}" ]; then
uv sync || { echo "FAIL setup: uv sync"; exit 1; }
MOJO=.venv/bin/mojo
fi
export MOJO
python3 -c 'import sqlite3; print("oracle sqlite", sqlite3.sqlite_version)'
scripts/check.sh
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.