Module: PostgreSQLCursor::ActiveRecord::ConnectionAdapters::PostgreSQLTypeMap

Defined in:
lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb

Instance Method Summary collapse

Instance Method Details

#get_type_mapObject

Returns the private “type_map” needed for the cursor operation


7
8
9
10
11
12
13
# File 'lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb', line 7

def get_type_map # :nodoc:
  if ::ActiveRecord::VERSION::MAJOR == 4 && ::ActiveRecord::VERSION::MINOR == 0
    ::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::TYPE_MAP
  else
    type_map
  end
end