package postgres_async

  1. Overview
  2. Docs
type column = {
  1. name : string;
  2. format : [ `Text | `Binary ];
}

Unlike in RowDescription, it is possible to receive `Binary here because someone could put that option in their COPY query. Postgres_async will then abort the copy.

type t = {
  1. overall_format : [ `Text | `Binary ];
  2. num_columns : int;
  3. column_formats : [ `Text | `Binary ] array;
}
val consume : ([> Core.read ], Iobuf.seek) Iobuf.t -> t Core.Or_error.t
OCaml

Innovation. Community. Security.