package postgres_async

  1. Overview
  2. Docs
type t = {
  1. error_code : string;
  2. all_fields : (Error_or_notice_field.t * string) list;
}

In the protocol, the Code field is mandatory, so we also extract it to a separate non-optional record label. It will still appear in the all_fields list.

val consume : ([> Core.read ], Iobuf.seek) Iobuf.t -> t Core.Or_error.t
OCaml

Innovation. Community. Security.