Class: ActiveRecord::ConnectionAdapters::PostgresJdbcConnection

Inherits:
JdbcConnection
  • Object
show all
Defined in:
lib/arjdbc/postgresql/adapter.rb

Instance Attribute Summary

Attributes inherited from JdbcConnection

#adapter, #connection_factory

Attributes included from JdbcConnection::ConfigHelper

#config

Instance Method Summary collapse

Methods inherited from JdbcConnection

#active?, #initialize, #jndi_connection?

Methods included from JdbcConnection::ConfigHelper

#configure_connection, #configure_jdbc, #configure_jndi

Constructor Details

This class inherits a constructor from ActiveRecord::ConnectionAdapters::JdbcConnection

Instance Method Details

#java_native_database_typesObject



937
# File 'lib/arjdbc/postgresql/adapter.rb', line 937

alias :java_native_database_types :set_native_database_types

#set_native_database_typesObject

override to prevent connection from loading hash from jdbc metadata, which can be expensive. We can do this since native_database_types is defined in the adapter to use a static hash not relying on the driver’s metadata



943
944
945
# File 'lib/arjdbc/postgresql/adapter.rb', line 943

def set_native_database_types
  @native_types = {}
end