Module Csv_lwt
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.
type t= Csv.t
Input
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.tSee
Csv.of_in_obj.
val load : ?separator:char -> ?strip:bool -> ?backslash_escape:bool -> ?excel_tricks:bool -> ?fix:bool -> string -> t Lwt.tSee
Csv.load
val load_in : ?separator:char -> ?strip:bool -> ?backslash_escape:bool -> ?excel_tricks:bool -> ?fix:bool -> Lwt_io.input_channel -> t Lwt.tSee
Csv.load_in.
val close_in : in_channel -> unit Lwt.tclose_in iccloses the channelic. The underlying channel is closed as well.
val next : in_channel -> string list Lwt.tSee
Csv.next
val fold_left : f:('a -> string list -> 'a Lwt.t) -> init:'a -> in_channel -> 'a Lwt.tSee
Csv.fold_left.
val fold_right : f:(string list -> 'a -> 'a Lwt.t) -> in_channel -> 'a -> 'a Lwt.tSee
Csv.fold_right.
val iter : f:(string list -> unit Lwt.t) -> in_channel -> unit Lwt.tSee
Csv.inter.
val current_record : in_channel -> string listSee
Csv.current_record.
Output
val to_channel : ?separator:char -> ?backslash_escape:bool -> ?excel_tricks:bool -> ?quote_all:bool -> Lwt_io.output_channel -> out_channelSee
Csv.to_channel.
val close_out : out_channel -> unit Lwt.tSee
Csv.close_out.
val output_record : out_channel -> string list -> unit Lwt.tSee
Csv.output_record.
val output_all : out_channel -> t -> unit Lwt.tSee
Csv.output_all.
Functions to access rows when a header is present
module Rows : sig ... end