# class PG::BinaryEncoder::Array

This is the encoder class for PostgreSQL array types in binary format.

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 byte string without interpretation.

It is possible to enforce a number of dimensions to be encoded by `dimensions=` . Deeper nested arrays are then passed to the elements encoder and less nested arrays raise an ArgumentError.

The accessors needs_quotation and delimiter are ignored for binary encoding.