Expand description
Allocation-lean SQL rendering primitives.
These types replace the temporary-string-heavy path generators used to
take (formatting an escaped copy, then a quoted copy, then joining rows
with Vec<String>) with borrowed Display formatting and reusable
buffers. See docs/superpowers/specs/2026-07-16-gen-fixtures-performance-design.md
for the measurements that motivated this module.
Structsยง
- Random
Block - A block-buffered source of unbiased, alphabet-restricted random bytes.
- Render
Options - Rendering knobs for
SqlRenderer, independent of the compiledcrate::generate::GenerationPlanso a caller (the CLI, or a test) can render the same plan under several target dialects. - RowBatch
- A reusable buffer of formatted SQL row tuples, joined by
,\n. - SqlRenderer
- Streams generated rows to dialect-correct SQL as a
RowSink. - SqlString
- A borrowed value that renders as a dialect-correct, quoted SQL string
literal via
Display, without allocating an intermediate escapedString.