sqlz
Changelog
Subscribe via RSS sqlz has no tagged release yet. This log records notable milestones on main; the full history is in the commit log.
zig-0.17
- The toolchain and all dependencies moved to Zig 0.17.0.
source-and-lexer
- A source manager handles BOMs, UTF-8 validation, scalar columns and LF/CRLF line endings for every diagnostic.
- A shared, dialect-aware SQL lexer with enforced token and nesting limits.
- Source trust boundaries: every input must resolve inside the project root, and symlinked directories inside a root fail the check.
- Each project declares its own runtime backends with
ProjectOptions.runtime.
addProject now panics at configure time when .runtime names a backend the sqlz dependency was configured without.
diagnostics
- PostgreSQL syntax errors, migration graph errors, catalog and semantic errors are reported with source spans and excerpts.
- Diagnostics are also available as versioned JSON.
- PostgreSQL server versions are enforced at connect time.
postgres
- Offline PostgreSQL migration replay, enum, domain and array checking.
- A pg.zig runtime adapter with pools, one-dimensional arrays and a live conformance matrix for PostgreSQL 15–18.
- Backend-specific query variants and lazy runtime backend selection.
- An experimental
zig build sqlz -- bootstrap postgrescommand that copies a SQLite database into PostgreSQL.
sqlite
- The checker, binding generator and SQLite runtime: all four cardinalities, borrowed and owned rows, transactions, pools and enum codecs.
- Queries declared in Zig with
sqlz.Queryare checked, including their.paramsand.rowstructs.