module ActiveRecord::ConnectionAdapters::PostgreSQL::OID

Private Class Methods

alias_type(new, old) click to toggle source

Alias the old type to the new type.

# File lib/arjdbc/postgresql/base/oid.rb, line 350
def self.alias_type(new, old)
  NAMES[new] = NAMES[old]
end
register_type(name, type) click to toggle source

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 345
def self.register_type(name, type)
  NAMES[name] = type
end
registered_type?(name) click to toggle source

Is name a registered type?

# File lib/arjdbc/postgresql/base/oid.rb, line 355
def self.registered_type?(name)
  NAMES.key? name
end