Module Delimited__.Write
val empty : 'a tval column : ('a -> string) -> header:string -> 'a tval column_m : (module Delimited_kernel__.Write_intf.To_string with type t = 'a) -> header:string -> 'a tval column_m_opt : ?default:string -> (module Delimited_kernel__.Write_intf.To_string with type t = 'a) -> header:string -> 'a option tdefaultis printed in place ofNone, and if not supplied is the empty string.
val of_list : 'a t list -> 'a tval append : 'a t -> 'a t -> 'a tval contra_map : 'b t -> f:('a -> 'b) -> 'a tval map_headers : 'a t -> f:(string -> string) -> 'a tval headers : 'a t -> string listval to_columns : 'a t -> 'a -> string list
module Fields_O : sig ... endOpen for prefix operators useful for using with Fields.to_list.
module O : sig ... endmodule By_row : sig ... endmodule Expert : sig ... endval with_writer : ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> write_header:bool -> 'a t -> Async.Writer.t -> f:('a Async.Pipe.Writer.t -> 'b Async.Deferred.t) -> 'b Async.Deferred.tMake a pipe writer for
'as from a writer. The'as will be written out as CSVs.Once
with_writer's return Deferred becomes determined, it is guaranteed that the whole CSV has hit the OS buffer.The writer will NOT be closed when the pipe closes.
val with_file : ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> write_header:bool -> 'a t -> string -> f:('a Async.Pipe.Writer.t -> 'b Async.Deferred.t) -> 'b Async.Deferred.tMake a pipe writer for
'as from a filename, using the given CSV converter.
module By_row : sig ... endmodule Expert : sig ... endHere be dragons. You may wish to use these functions over the bracketed interface above, but you MUST wait on
Pipe.upstream_flushedafter closing the pipe.