Lwt interface to the CSV library.
This module only offers Lwt input/output functions for CSV files. Csv provides additional functions to transform CSV data.
val of_channel : ?separator:char ‑> ?strip:bool ‑> ?has_header:bool ‑> ?header:string list ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?fix:bool ‑> Lwt_io.input_channel ‑> in_channel Lwt.t
See Csv.of_in_obj.
val load : ?separator:char ‑> ?strip:bool ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?fix:bool ‑> string ‑> t Lwt.t
See Csv.load
val load_in : ?separator:char ‑> ?strip:bool ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?fix:bool ‑> Lwt_io.input_channel ‑> t Lwt.t
See Csv.load_in.
val close_in : in_channel ‑> unit Lwt.t
close_in ic
closes the channel ic
. The underlying channel is
closed as well.
val fold_left : f:('a ‑> string list ‑> 'a Lwt.t) ‑> init:'a ‑> in_channel ‑> 'a Lwt.t
See Csv.fold_left.
val fold_right : f:(string list ‑> 'a ‑> 'a Lwt.t) ‑> in_channel ‑> 'a ‑> 'a Lwt.t
See Csv.fold_right.
val to_channel : ?separator:char ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?quote_all:bool ‑> Lwt_io.output_channel ‑> out_channel
See Csv.to_channel.
val save : ?separator:char ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?quote_all:bool ‑> string ‑> t ‑> unit Lwt.t
See Csv.save.
val print : ?separator:char ‑> ?backslash_escape:bool ‑> ?excel_tricks:bool ‑> ?quote_all:bool ‑> t ‑> unit Lwt.t
See Csv.print.
module Rows : sig ... end