class PG::Connection
def get_copy_data(async=false, decoder=nil)
See also #copy_data.
if PG::TextDecoder::CopyRow#type_map is set accordingly.
Optionally the decoder can type cast the single fields to various Ruby types in one step,
COPY text format to an Array of Strings.
PG::TextDecoder::CopyRow decodes the received data fields from one row of PostgreSQL's
If _decoder_ is set to a PG::Coder derivation, the return type depends on this decoder.
If _decoder_ is not set or +nil+, data is returned as binary string.
block (only possible if _nonblock_ is true).
if the copy is done, or +false+ if the call would
Return one row of data, +nil+
conn.get_copy_data( [ nonblock = false [, decoder = nil ]] ) -> Object
call-seq:
def get_copy_data(async=false, decoder=nil) if async return sync_get_copy_data(async, decoder) else while (res=sync_get_copy_data(true, decoder)) == false socket_io.wait_readable consume_input end return res end end