Skip to main content

Module csv_proc

Module csv_proc 

Source
Expand description

CSV structured processor.

The CLI uses process_to_edits: it drives csv-core (a byte-accurate field state machine) and replaces each matched column’s value at its exact source span, preserving the delimiter, quoting style, line endings, and non-matched columns (""-escaped/quoted fields are hit as written, so they never leak). process re-serializes via the csv writer as a fallback.

§Column Matching

Field rules match by header name. If the first row is a header (default assumption), column names are extracted from it and matched against the profile’s field rules.

§Profile Options

KeyDefaultDescription
delimiter","Field delimiter (single ASCII char).
has_header"true"Whether the first row is a header row.

Structs§

CsvProcessor
Structured processor for CSV/TSV files.