Namespace
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Array
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Bit
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Boolean
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Bytea
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Cidr
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Date
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Decimal
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Float
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Hstore
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Identity
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Integer
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Json
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Money
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Point
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Range
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Time
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Timestamp
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::TypeMap
- CLASS ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Vector
Methods
Constants
NAMES | = | Hash.new { |h,k| # :nodoc: h[k] = OID::Identity.new } |
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. |
Class Public methods
alias_type(new, old)
Link
Alias the old
type to the new
type.
register_type(name, type)
Link
Register an OID type named name
with a typecasting object in
type
. name
should correspond to the `typname`
column in the `pg_type` table.