pub fn encode(
records: &[Value],
delimiter: u8,
has_headers: bool,
) -> Result<Vec<u8>, FaucetError>Available on crate feature
file-format-csv only.Expand description
Write records as CSV.
Columns are the first-seen union of every record’s keys
(header_union), so a record that gains a field
mid-page widens the file instead of losing the field. A record missing a
column writes an empty cell.