package postgres_async

  1. Overview
  2. Docs

Module Backend.CopyInResponseSource

Sourcetype 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.

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

Innovation. Community. Security.