123456789_123456789_123456789_123456789_123456789_

Class: PG::BinaryDecoder::Array

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: PG::CompositeDecoder
Defined in: ext/pg_binary_decoder.c

Overview

This is a decoder class for conversion of binary array types.

It returns an Array with possibly an arbitrary number of sub-Arrays. All values are decoded according to the #elements_type accessor. Sub-arrays are decoded recursively.

This decoder simply ignores any dimension decorations preceding the array values. It returns all array values as regular ruby Array with a zero based index, regardless of the index given in the dimension decoration.

An array decoder which respects dimension decorations is waiting to be implemented.

Constant Summary

::PG::Coder - Inherited

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

Class Method Summary

::PG::Coder - Inherited

.new

Create a new coder object based on the attribute Hash.

Instance Attribute Summary

::PG::CompositeCoder - Inherited

#delimiter

The character that separates values within the composite type.

#delimiter=

Specifies the character that separates values within the composite type.

#elements_type,
#needs_quotation=

Specifies whether the assigned #elements_type requires quotation marks to be transferred safely.

#needs_quotation?

Specifies whether the assigned #elements_type requires quotation marks to be transferred safely.

::PG::Coder - Inherited

#flags

Get current bitwise OR-ed coder flags.

#flags=

Set coder specific bitwise OR-ed flags.

#format

The format code that is sent alongside with an encoded query parameter value.

#format=

Specifies the format code that is sent alongside with an encoded query parameter value.

#name

Name of the coder or the corresponding data type.

#oid

The type OID that is sent alongside with an encoded query parameter value.

#oid=

Specifies the type OID that is sent alongside with an encoded query parameter value.

Instance Method Summary

::PG::CompositeCoder - Inherited

#elements_type=

Specifies the ::PG::Coder object that is used to encode or decode the single elementes of this composite type.

#inspect, #to_h

::PG::Coder - Inherited

#==, #dup, #inspect, #inspect_short, #marshal_dump, #marshal_load,
#to_h

Returns coder attributes as Hash.

Constructor Details

This class inherits a constructor from PG::Coder