Class: PG::TextEncoder::Bytea
- Inherits:
-
SimpleEncoder
- Object
- Coder
- SimpleCoder
- SimpleEncoder
- PG::TextEncoder::Bytea
- Defined in:
- ext/pg_text_encoder.c
Overview
This is an encoder class for the PostgreSQL bytea type for server version 9.0 or newer.
The binary String is converted to hexadecimal representation for transmission in text format. For query bind parameters it is recommended to use PG::BinaryEncoder::Bytea instead, in order to decrease network traffic and CPU usage.
Instance Attribute Summary
Attributes inherited from Coder
Method Summary
Methods inherited from Coder
#==, #decode, #dup, #encode, #format, #format=, #initialize, #inspect, #marshal_dump, #marshal_load, #oid, #oid=, #to_h
Constructor Details
This class inherits a constructor from PG::Coder