When the PG adapter connects, the pg_type table is queried. The key of this hash maps to the `typname` column from the table. type_map is then dynamically built with oids as the key and type objects as values.
Alias the old type to the new type.
# File lib/arjdbc/postgresql/base/oid.rb, line 406 def self.alias_type(new, old) NAMES[new] = NAMES[old] end
Register an OID type named name with a typecasting object in type. name should correspond to the `typname` column in the `pg_type` table.
# File lib/arjdbc/postgresql/base/oid.rb, line 401 def self.register_type(name, type) NAMES[name] = type end
Generated with the Darkfish Rdoc Generator 2.