package delimited_parsing

  1. Overview
  2. Docs
val of_writer : ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> Async.Writer.t -> string list Async.Pipe.Writer.t

Make a pipe writer for a list of strings from a writer. The string list will be formatted as CSV.

WARNING: you MUST wait on Pipe.upstream_flushed before doing anything with the resulting file

val of_writer_and_close : ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> Async.Writer.t -> string list Async.Pipe.Writer.t

Make a pipe writer for a list of strings from a writer. The string list will be formatted as CSV.

The writer will be closed when the pipe closes.

WARNING: you MUST wait on Pipe.upstream_flushed before doing anything with the resulting file

val create_writer : ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> string -> string list Async.Pipe.Writer.t Async.Deferred.t

Make a pipe writer for a list of strings from a filename. The string list will be formatted as CSV.

WARNING: you MUST wait on Pipe.upstream_flushed before doing anything with the resulting file

OCaml

Innovation. Community. Security.