Module Tezos_benchmark.CsvSource

Save and load tables as CSV files.

Note that this module does not support the full specification of CSV but covers only the specific format used in Snoop.

Sourcetype csv = string list list

The type of table. A list of rows. Each row must have the same number of columns

Sourceval concat : ?check_disjoint_headers:bool -> csv -> csv -> csv

Horizontally concat tables. The Tables must have the same number of rows.

Sourceval export : filename:string -> ?separator:char -> ?linebreak:char -> csv -> unit

Save a table to a CSV file

Sourceval export_stdout : ?separator:char -> ?linebreak:char -> csv -> unit

Print a table as CSV to stdout

Sourceval import : filename:string -> ?separator:char -> unit -> csv

Load a CSV file

Sourceval append_columns : filename:string -> ?separator:char -> ?linebreak:char -> csv -> unit

Extend the CSV file with the given columns