Skip to main content

Module csv

Module csv 

Source
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.
CsvRenderer
Renders TableRows/1 as CSV.

Enums§

MissingText
What a Cell::Missing becomes.
Newline
The record terminator.
Quoting
When a field is quoted.