Class: ActiveRecord::ConnectionAdapters::PostgresJdbcConnection
- Inherits:
-
JdbcConnection
- Object
- JdbcConnection
- ActiveRecord::ConnectionAdapters::PostgresJdbcConnection
- Defined in:
- lib/arjdbc/postgresql/adapter.rb
Instance Attribute Summary
Attributes inherited from JdbcConnection
Attributes included from JdbcConnection::ConfigHelper
Instance Method Summary collapse
- #java_native_database_types ⇒ Object
-
#set_native_database_types ⇒ Object
override to prevent connection from loading hash from jdbc metadata, which can be expensive.
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_types ⇒ Object
785 |
# File 'lib/arjdbc/postgresql/adapter.rb', line 785 alias :java_native_database_types :set_native_database_types |
#set_native_database_types ⇒ Object
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 |