Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

QAIL Zig Documentation

Pure Zig PostgreSQL wire-protocol driver with AST-native query building and PostgreSQL-path parity tracking against qail.rs.

QAIL Zig is the active pure-Zig implementation of the QAIL PostgreSQL stack. It shares the same AST direction as qail.rs, but keeps the runtime, protocol path, and tooling in Zig. Full qail.rs ecosystem parity is still incomplete outside the PostgreSQL-focused track.

Latest Updates (March 2026)

  • qail-zig is active again and no longer documented as deferred.
  • PG driver hardening now includes AST sanitization, stricter startup/auth sequencing, COPY fail-closed checks, and replication hardening suites.
  • Three-way benchmark harnesses now compare pgx, qail.rs, and qail-zig directly.
  • qail-zig now has its own versioned changelog and docs track.

What QAIL Zig Covers

AreaStatus
PostgreSQL driver✅ Active
Connection pooling✅ Active
Prepared pipelines✅ Active
COPY in/out helpers✅ Active
TLS✅ Active
Logical replication core✅ Active
CLI + LSP✅ Active
Security hardening suites✅ Active
qail.rs parity tracking✅ Active

Implementation Positioning

  • qail.rs is still the production reference and widest implementation.
  • qail-zig is the serious pure-Zig track, with active parity work and dedicated benchmarks.
  • Security boundary: on the AST flow, the goal remains no application SQL string interpolation surface.

Docs Map