Expand description
TableRows/1 as CSV: the always-quoted profile.
The standard profile quotes every field, doubles ", ends every record
with CRLF and writes numbers as their lexemes. Always quoting is a
decision, not a habit: it makes the output independent of the data (no
field can change the record’s shape), it makes the empty string and the
null text distinguishable from a missing quote pair, and it lets a
reader tell that a field was a field. Minimal quoting and other
delimiters are dialects the caller selects explicitly, and they are
valid here because a row is a finite vector: the renderer sees the whole
field before it decides how to write it.
The renderer validates the protocol as it goes, because a third-party
transducer or a host adapter is as much a source of TableRows/1 as the
standard table transducer is.
Structs§
- CsvOptions
- The CSV dialect, which is one of alchemy’s shared types. The CSV dialect.
- CsvRenderer
- Renders
TableRows/1as CSV.
Enums§
- Missing
Text - The CSV dialect, which is one of alchemy’s shared types.
What a
Cell::Missingbecomes. - Newline
- The CSV dialect, which is one of alchemy’s shared types. The record terminator.
- Quoting
- The CSV dialect, which is one of alchemy’s shared types. When a field is quoted.