Class: PgFuncall::AR41TypeMap
- 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
175 176 177 |
# File 'lib/pg_funcall/type_map.rb', line 175 def lookup_ar_by_name(name) ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::NAMES[name] end |
#lookup_ar_by_oid(oid) ⇒ Object
179 180 181 |
# File 'lib/pg_funcall/type_map.rb', line 179 def lookup_ar_by_oid(oid) @ar_connection.instance_variable_get("@type_map")[oid] end |