Class: PG::TextEncoder::Array

Inherits:
CompositeEncoder show all
Defined in:
ext/pg_text_encoder.c

Overview

This is the encoder class for PostgreSQL array types.

All values are encoded according to the #elements_type accessor. Sub-arrays are encoded recursively.

This encoder expects an Array of values or sub-arrays as input. Other values are passed through as text without interpretation.

Constant Summary

Constants inherited from Coder

Coder::FORMAT_ERROR_MASK, Coder::FORMAT_ERROR_TO_PARTIAL, Coder::FORMAT_ERROR_TO_RAISE, Coder::FORMAT_ERROR_TO_STRING, Coder::TIMESTAMP_APP_LOCAL, Coder::TIMESTAMP_APP_UTC, Coder::TIMESTAMP_DB_LOCAL, Coder::TIMESTAMP_DB_UTC

Instance Attribute Summary

Attributes inherited from CompositeCoder

#elements_type

Attributes inherited from Coder

#name

Method Summary

Methods inherited from CompositeCoder

#delimiter, #delimiter=, #elements_type=, #inspect, #needs_quotation=, #needs_quotation?, #to_h

Methods inherited from Coder

#==, #dup, #flags, #flags=, #format, #format=, #initialize, #inspect, #inspect_short, #marshal_dump, #marshal_load, #oid, #oid=, #to_h

Constructor Details

This class inherits a constructor from PG::Coder