Class: PgFuncall::AR40TypeMap
- Defined in:
- lib/pg_funcall/type_map.rb
Constant Summary
Constants inherited from TypeMap
Instance Method Summary collapse
Methods inherited from TypeMap
#_canonicalize_type_name, #ar_connection, fetch, #function_types, #initialize, #load_types, #oid_for_type, #pg_connection, #resolve, #type_cast_from_database
Constructor Details
This class inherits a constructor from PgFuncall::TypeMap
Instance Method Details
#lookup_ar_by_name(name) ⇒ Object
169 170 171 |
# File 'lib/pg_funcall/type_map.rb', line 169 def lookup_ar_by_name(name) ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::NAMES[name] end |
#lookup_ar_by_oid(oid) ⇒ Object
165 166 167 |
# File 'lib/pg_funcall/type_map.rb', line 165 def lookup_ar_by_oid(oid) ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::TYPE_MAP[oid] end |