Expand description
PostgreSQL Encoder (Visitor Pattern)
Compiles Qail AST into PostgreSQL wire protocol bytes. This is pure, synchronous computation - no I/O, no async.
§Architecture
Layer 2 of the QAIL architecture:
- Input: Qail (AST)
- Output: BytesMut (ready to send over the wire)
The async I/O layer (Layer 3) consumes these bytes.
Structs§
- PgEncoder
- Takes a Qail and produces wire protocol bytes. This is the “Visitor” in the visitor pattern.
Enums§
- Param
- Zero-copy parameter for ultra-fast encoding. Uses borrowed slices to avoid any allocation or copy.