Class: PG::TextDecoder::CopyRow

Inherits:
CopyDecoder
  • Object
show all
Defined in:
ext/pg_copy_coder.c

Overview

This class decodes one row of arbitrary columns received as COPY data in text format. See the COPY command for description of the format.

It is intended to be used in conjunction with PG::Connection#copy_data .

The columns are retrieved as Array of values. The single values are decoded as defined in the assigned #type_map. If no type_map was assigned, all values are converted to Strings by PG::TextDecoder::String.