PG::BasicTypeRegistry::
CoderMapsBundle class
Superclass | Object |
An instance of this class stores CoderMap
instances to be used for text and binary wire formats as well as encoder and decoder directions.
A PG::BasicTypeRegistry::CoderMapsBundle
instance retrieves all type definitions from the PostgreSQL server and matches them with the coder definitions of the global PG::BasicTypeRegistry
. It provides 4 separate CoderMap
instances for the combinations of the two formats and directions.
A PG::BasicTypeRegistry::CoderMapsBundle
instance can be used to initialize an instance of
by passing it instead of the connection object like so:
conn = PG::Connection.new maps = PG::BasicTypeRegistry::CoderMapsBundle.new(conn) conn.type_map_for_results = PG::BasicTypeMapForResults.new(maps)