ContainerCodec
Utility object for parsing and serializing PostgreSQL container types. Supports arrays, composites, records, ranges, and multiranges.
Functions
Parses a byte array into a PgContainer based on the OID.
Parses a PostgreSQL array from its binary format.
Parses a PostgreSQL composite type (row) from its binary format.
Parses a PostgreSQL multirange type from its binary format.
Parses a PostgreSQL range type from its binary format.
Parses an anonymous PostgreSQL record type from its binary format.
Serializes a PgContainer into the provided PgByteWriter.
Serializes a PgArray into the provided PgByteWriter.
Serializes a PgComposite into the provided PgByteWriter.
Serializes a PgMultirange into the provided PgByteWriter.
Serializes a PgRange into the provided PgByteWriter.
Attempting to serialize an anonymous record will throw an exception, since PostgreSQL does not accept anonymous records as bound parameters.