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, #configure_url

Constructor Details

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

Instance Method Details

#java_native_database_typesObject



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

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



791
792
793
# File 'lib/arjdbc/postgresql/adapter.rb', line 791

def set_native_database_types
  @native_types = {}
end