Module Postgres.Parser

type t = {
  1. value : bytes;
  2. mutable value_pos : int;
}
val get_current_buf : t -> bytes
val debug : bytes -> unit
val of_bytes : bytes -> t
val _run : (unit -> 'a) -> ('b, 'c) Stdlib.result
val sub_string : t -> length:int -> string
val read_int : t -> length:int -> (int, 'a) Stdlib.result
val read_int8 : t -> length:int -> (char, 'a) Stdlib.result
val read_int31 : t -> length:int -> (int, 'a) Stdlib.result
val read_int32 : t -> length:int -> (int32, 'a) Stdlib.result
val read_int64 : t -> length:int -> (int64, 'a) Stdlib.result
val peek : t -> char option
val get_length : t -> int
val read_column_length : t -> (int, 'a) Stdlib.result
val index_of : t -> char -> int option
val get_str_nul : t -> (string, string) Stdlib.result
val read_bool : t -> length:int -> (bool, [> `Msg of string ]) Stdlib.result
val read_int8_be : t -> length:int -> (char, 'a) Stdlib.result
val read_int16_be : t -> length:int -> (int, 'a) Stdlib.result
val read_int_be : t -> length:int -> (int, 'a) Stdlib.result
val read_int32_be : t -> length:int -> (int32, 'a) Stdlib.result
val read_int64_be : t -> length:int -> (int64, 'a) Stdlib.result
val read_char_no_move : t -> char
val read_next_char_no_move : t -> char
val read_char : t -> char
val read_string : t -> length:int -> (string, 'a) Stdlib.result
val read_float32 : t -> length:int -> (float, 'a) Stdlib.result
val read_float64 : t -> length:int -> (float, 'a) Stdlib.result
val read_null : t -> (unit, 'a) Stdlib.result
val read_list_open : t -> (unit, 'a) Stdlib.result
val read_comma : t -> (unit, 'a) Stdlib.result
val read_row_description : t -> (string list option, 'a) Stdlib.result
val element_item_length : ?escaped_string:bool -> t -> int