Class: PG::TextEncoder::CopyRow

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

Overview

This class encodes one row of arbitrary columns for transmission 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 expected as Array of values. The single values are encoded as defined in the assigned #type_map. If no type_map was assigned, all values are converted to Strings by PG::TextEncoder::String.