package core_extended

  1. Overview
  2. Docs

Module Read.StreamingSource

Sourcetype 'a builder_t = 'a t
Sourcetype 'a t
Sourceval create : ?strip:bool -> ?sep:char -> ?quote:[ `No_quoting | `Using of char ] -> ?start_line_number:int -> ?on_invalid_row:'a On_invalid_row.t -> ?header:Header.t -> 'a builder_t -> init:'b -> f:('b -> 'a -> 'b) -> 'b t
Sourceval create_indexed : ?strip:bool -> ?sep:char -> ?quote:[ `No_quoting | `Using of char ] -> ?start_line_number:int -> ?on_invalid_row:'a On_invalid_row.t -> ?header:Header.t -> 'a builder_t -> init:'b -> f:(int -> 'b -> 'a -> 'b) -> 'b t

Like create, but additionally passes the line number of the current row to f

Sourceval input_string : 'a t -> ?pos:int -> ?len:int -> string -> 'a t
Sourceval input : 'a t -> ?pos:int -> ?len:int -> bytes -> 'a t
Sourceval finish : 'a t -> 'a t
Sourceval acc : 'a t -> 'a
Sourceval headers : 'a t -> Core.String.Set.t option
Sourceval state : 'a t -> [ `Parsing_header | `Parsing_rows ]