class PG::TextDecoder::Array - pg-1.1.4 Documentation

# class PG::TextDecoder::Array

This is a decoder class for PostgreSQL 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.