Skip to main content

Module reader

Module reader 

Source
Expand description

CSV reader: streaming rows via Stream<CsvError, Row>.

The reader wraps csv::Reader and exposes rows as a comp-cat-rs Stream, with file lifecycle managed by Resource.

Structs§

ReaderConfig
Configuration for reading a CSV file.

Functions§

from_str
Read a CSV from a string (useful for testing and in-memory data).
read_all
Read all rows from a file path, returning an Io that produces a Vec<Row>.
reader_resource
Create a Resource for a CSV reader.
stream_rows
Stream rows from a file path.