Repository navigation
Releases
Qryndel v0.3.0
Qryndel v0.3.0
Qryndel v0.3.0 makes UDL useful for real reporting and inventory work on
SQLite, and was hardened by testing against a 1.5-million-row real-world
database (see docs/real-world-testing.md).
New
- Compare columns:
WHERE l.current_stock != p.master_stockfinds stock
that drifted between a marketplace and your master record. - Arithmetic:
SUM(fees) / SUM(gross) * 100 AS fee_pct,
SUM(qty * unit_cost) AS stock_value,SET stock = stock - $sold.
Division is always decimal. - Named results:
RETURN ... AS name, usable inORDER BY. - Numbers stored as text:
NUMBER(x)/TEXT(x)conversions, and
TYPE ... price: Numberconverts a TEXT column everywhere it is used. - Schema checks against the live database: typos are caught before any
SQL runs, with a "did you mean" hint.--check-schemareports drift
betweenTYPEdeclarations and the real tables. - Result contracts:
NonNull,NonEmpty,Unique,RowCount,
CompareandNoMissingchecks on query results. - Client options:
default_budgetfor every query andbusy_timeout_ms
for lock waits.
Safer
- Comparing a TEXT column with a number (
price > 1000) is an error when the
schema is known. In plain SQLite it compares text and, on the test data,
returned 112,081 rows instead of 844. UPDATE/DELETEreject WHERE clauses that can never be false
(1 = 1,price = price,x IS NULL OR x IS NOT NULL).- Writes use
BEGIN IMMEDIATE; a locked database gives
UDL_DATABASE_LOCKEDwithin the time budget instead of waiting 5 s.
Fixed
- Deep or long queries no longer crash with
RecursionError; a 5,000-term
ORworks and nesting beyond 200 levels is a clear error. - Huge integer parameters give a
ParameterErrorinstead ofOverflowError. - Large reads are about 1.3x native SQLite time instead of 2x, and
max_result_bytesstops reading as soon as the limit is passed. - The optimizer no longer pushes a two-table column comparison into one side
of a join.
Behaviour changes
- An unquoted word on the right of a comparison is now a column name
(city = 'Singapore', notcity = Singapore). ExecutionMetrics.result_bytesisNoneunless amax_result_bytes
budget is set.
Everything else written for v0.1.0 and v0.2.0 keeps working. See
CHANGELOG.md for the full list.
Install from a source checkout with python -m pip install .. Python 3.10+
and SQLite are required. PostgreSQL, MongoDB, Neo4j and graph queries are not
part of this release.
Qryndel v0.2.0
Qryndel v0.2.0
Qryndel v0.2.0 completes the UDL language on SQLite. On top of v0.1.0's
filtered reads, it adds sorting and paging, joins, aggregation with
GROUP BY / HAVING, nested JSON fields, reusable RULE predicates,
TYPE schema declarations, and safe writes (INSERT, UPDATE, DELETE,
and BEGIN ... COMMIT|ROLLBACK transactions).
Safety is built in: UPDATE and DELETE require WHERE, writes are
transactional and roll back on errors or exceeded budgets, clients can be
read-only or limited to specific tables, and explain / preview show what
a statement will do without running it.
Queries and API calls written for v0.1.0 keep working. See CHANGELOG.md for
the small API changes.
Install from a source checkout with python -m pip install .. Python 3.10+
and SQLite are required. RIGHT JOIN / FULL JOIN need SQLite 3.39+.
PostgreSQL, MongoDB, Neo4j and graph queries are not part of this release.
Contributing
Bug reports, suggestions and pull requests are welcome. Larger language changes should be discussed through issues or RFCs.
License
MIT License.
Created by Manveer Singh.
Qryndel v0.1.0
Qryndel v0.1.0
First public release of Qryndel, an experimental implementation of Unified Data Language (UDL).
This release establishes the basic query language and SQLite execution backend.
Included
- FROM, WHERE and RETURN queries
- Comparison and boolean expressions
- Parenthesized conditions
- Named query parameters
- SQLite query compilation and execution
- Basic Python API and command-line interface
- Syntax and semantic error reporting
Current limitations
Only SQLite is supported in this release. The language, Python API and internal implementation may change as development continues.
Contributing
Bug reports, suggestions and pull requests are welcome. Larger language changes should be discussed through issues or RFCs.
License
MIT License.
Created by Manveer Singh.