binoc-sqlite
SQLite comparator plugin for Binoc. Diffs .sqlite / .sqlite3 / .db files by schema (tables, columns, types) and row counts — not row-by-row content — so you get summaries like “1 table modified”, “1 row added (1 → 2 rows)”, or “Table added (2 columns, 5 rows)” instead of a raw binary change.
Install
From PyPI (requires Binoc and Python 3.10+):
pip install binoc binoc-sqlite
From the repo (when developing Binoc or this plugin):
uv run --with ./binoc-python --with ./binoc-sqlite binoc diff snapshot-a snapshot-b
Example
Build two SQLite DBs and diff them (requires sqlite3 on PATH):
mkdir -p /tmp/demo/snapshot-a /tmp/demo/snapshot-b
echo "CREATE TABLE t (id INT); INSERT INTO t VALUES (1);" | sqlite3 /tmp/demo/snapshot-a/data.sqlite
echo "CREATE TABLE t (id INT); INSERT INTO t VALUES (1); INSERT INTO t VALUES (2);" | sqlite3 /tmp/demo/snapshot-b/data.sqlite
binoc diff /tmp/demo/snapshot-a /tmp/demo/snapshot-b
Example output:
# Changelog: /tmp/demo/snapshot-a → /tmp/demo/snapshot-b
## Other Changes
- **data.sqlite**: 1 table modified
- **data.sqlite/t**: 1 row added (1 → 2 rows)
Without the plugin, the same files would be reported as “Content changed” by the binary comparator.
What it compares
- Schema: tables added/removed, columns added/removed, column type changes.
- Row counts per table (not cell-level diffs).
Tags emitted include binoc-sqlite.row-addition, binoc-sqlite.table-addition, binoc-sqlite.schema-change, etc. Configure significance (e.g. clerical vs substantive) in your dataset config; see Writing Binoc Plugins.
Development
This crate is part of the Binoc workspace. From the workspace root:
- Run plugin tests:
cargo test -p binoc-sqlite - Or from this directory:
just test(justfile runs from parent)
Test vectors live in test-vectors/. They use .sqlite.d directories of .sql files; the test harness builds the .sqlite files at test time (see tests/test_vectors.rs). To regenerate expected-output snapshots:
just snapshot-update
(Run from binoc-sqlite/; the justfile runs the insta update from the workspace root.)
For writing your own Binoc plugins (Rust or Python), see the main repo’s Writing Binoc Plugins.
Metadata
Release files for binoc-sqlite 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| binoc_sqlite-0.1.1.tar.gz | 79.0 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| binoc_sqlite-0.1.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| binoc_sqlite-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| binoc_sqlite-0.1.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| binoc_sqlite-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 5.4 MB
Release files / binoc_sqlite-0.1.1.tar.gz
| Download URL | binoc_sqlite-0.1.1.tar.gz |
|---|---|
| Size | 79.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
949240db1af85626287c473fcb4ff88aee919a18d7562ba5ba4a178d9cbedc30
|
|
BLAKE2b-256 checksum How to use checksums |
6e1dcedf8e4563b7272165dda35aa581b28fd96c72d031a3f258144c18ad25d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / binoc_sqlite-0.1.1-cp310-abi3-win_amd64.whl
| Download URL | binoc_sqlite-0.1.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8dba3f356cf6fee05a0166ec102e169e6d7d1aadf24f35b71d19f502d46886e4
|
|
BLAKE2b-256 checksum How to use checksums |
47188f598ffa51a898777f501543bb7694e3b4c353c8038bc96912f7350e56e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / binoc_sqlite-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | binoc_sqlite-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0797efd2ecc144bab9b7a113af6f7313371e0bd6dbb28ba98e371ec830bb4c15
|
|
BLAKE2b-256 checksum How to use checksums |
56ea834ec0cd8d3d1c252df53f1c19f3bd7bfc990417d2518d40c1239dc605f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / binoc_sqlite-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | binoc_sqlite-0.1.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9d1c39d408dec5d9b0ce13bcd1631ccced1e6beb42a15a1091321fb08f30fa3c
|
|
BLAKE2b-256 checksum How to use checksums |
a990d80b79c3bd1238702deabadd28ca0cfe3d0d523d003e8d9ba20599828286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / binoc_sqlite-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | binoc_sqlite-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
60f78d08f5ab766246a81e445bb8f85350071ef556e1eda7e6f08e707ecaec01
|
|
BLAKE2b-256 checksum How to use checksums |
d5a116001236c2ecf0046f34cc5f4295a7fc8864fd46e773879fdcbcc4883890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logSecurity for binoc-sqlite 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for binoc_sqlite-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.