Repository navigation
Releases
sqlwhy 1.0.1
Try the built-in audit on two orders. Order 41 matches two payments. Order 42 disappears at the filter. The demo reports both violations and exits 1.
uvx --python 3.12 sqlwhy demo cte-auditIn a Python 3.12 virtual environment, install this release from PyPI and run the same demo.
python -m pip install sqlwhy==1.0.1
python -m sqlwhy demo cte-audit- Discover trace, audit, diff, check and demo from
sqlwhy --help. - Compare your own Parquet outputs by key using the quickstart.
- When a query shape prevents tracing or auditing, the CLI points to a saved-output comparison and a form for sharing a minimal SQL example.
- sqlwhy uses DuckDB 1.5.6 through the 1.5 series. For an application running 2.x, export its tables and run sqlwhy on the exports in its own environment.
The wheel and source archive below are the same files distributed on PyPI. Their SHA-256 digests are in the attached checksum file.
sqlwhy 1.0.0
sqlwhy 1.0 compares two report outputs by key and can trace an unexpected row count back to the join, filter, or CTE that produced it in supported DuckDB queries.
sqlwhy diffcompares key multiplicities. Add--valueto compare values within each key, including duplicates and SQL NULL.sqlwhy check project.tomlruns named audit and diff checks in a single read-only transaction. Use--jsonfor the versioned machine report or--markdownfor a GitHub Actions job summary.sqlwhy demo cte-auditruns an included debugging example without any input files. It intentionally exits 1 after finding two violations.
The CLI and API contracts describe supported inputs, exit codes, and evidence. The example suite runs from the source distribution or checkout.
Download the wheel and install it in a Python 3.11+ environment:
python -m pip install ./sqlwhy-1.0.0-py3-none-any.whl
sqlwhy --versionThe source distribution includes the offline studies, examples, and tests. SHA-256 digests for both distributions are attached.