yuki v0.2.0 Default
Link to this section Summary
Functions
Eagerly dumps an enumerable into iodata (a list of binaries and bytes and other lists).
Lazily dumps from an enumerable to a stream.
Eagerly parses CSV from an enumerable and returns a list of rows.
Lazily parses CSV from a stream and returns a stream of rows.
Eagerly parses CSV from a string and returns a list of rows.
Link to this section Functions
dump_to_iodata(enumerable)
Eagerly dumps an enumerable into iodata (a list of binaries and bytes and other lists).
Callback implementation for NimbleCSV.dump_to_iodata/1
.
dump_to_stream(enumerable)
Lazily dumps from an enumerable to a stream.
It returns a stream that emits each row as iodata.
Callback implementation for NimbleCSV.dump_to_stream/1
.
parse_enumerable(enumerable, opts \\ [])
Eagerly parses CSV from an enumerable and returns a list of rows.
Options
:skip_headers
- whentrue
, skips headers. Defaults totrue
. Set it to false to keep headers or when the CSV has no headers.
Callback implementation for NimbleCSV.parse_enumerable/2
.
parse_stream(stream, opts \\ [])
Lazily parses CSV from a stream and returns a stream of rows.
Options
:skip_headers
- whentrue
, skips headers. Defaults totrue
. Set it to false to keep headers or when the CSV has no headers.
Callback implementation for NimbleCSV.parse_stream/2
.
parse_string(string, opts \\ [])
Eagerly parses CSV from a string and returns a list of rows.
Options
:skip_headers
- whentrue
, skips headers. Defaults totrue
. Set it to false to keep headers or when the CSV has no headers.
Callback implementation for NimbleCSV.parse_string/2
.