Skip to content

Releases

Qryndel v0.3.0

Choose a tag to compare

@Manveer04 Manveer04 released this 16 Nov 21:49

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_stock finds 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 in ORDER BY.
  • Numbers stored as text: NUMBER(x) / TEXT(x) conversions, and
    TYPE ... price: Number converts 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-schema reports drift
    between TYPE declarations and the real tables.
  • Result contracts: NonNull, NonEmpty, Unique, RowCount,
    Compare and NoMissing checks on query results.
  • Client options: default_budget for every query and busy_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/DELETE reject 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_LOCKED within the time budget instead of waiting 5 s.

Fixed

  • Deep or long queries no longer crash with RecursionError; a 5,000-term
    OR works and nesting beyond 200 levels is a clear error.
  • Huge integer parameters give a ParameterError instead of OverflowError.
  • Large reads are about 1.3x native SQLite time instead of 2x, and
    max_result_bytes stops 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', not city = Singapore).
  • ExecutionMetrics.result_bytes is None unless a max_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 Pre-release
Pre-release

Choose a tag to compare

@Manveer04 Manveer04 released this 06 Nov 07:44

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 Pre-release
Pre-release

Choose a tag to compare

@Manveer04 Manveer04 released this 17 Oct 19:28
bfd51b5

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.