View Source API Reference CSV v3.2.1

Modules

CSV

RFC 4180 compliant CSV parsing and encoding for Elixir. Allows to specify other separators, so it could also be named: TSV, but it isn't.

The Decoder CSV module sends lines of delimited values from a stream to the parser and converts rows coming from the CSV parser module to a consumable stream.

The Parser CSV module transforms a stream of byte chunks or bytes into a stream of row tuples and (potentially) error tuples. It follows the grammar defined in RFC4180.

The module defaults of CSV.

Implement encoding for your data types.

The Encoder CSV module takes a table stream and transforms it into RFC 4180 compliant stream of lines for writing to a CSV File or other IO.

Raised at runtime when the CSV stream either ends with unfinished escape sequences or escape sequences span more lines than specified by escape_max_lines (default 1000).

Raised at runtime when the CSV has rows of variable length and validate_row_length is set to true.

Raised at runtime when the CSV row has stray quotes.