Module: ArJdbc::Abstract::ConnectionManagement
- Included in:
- ActiveRecord::ConnectionAdapters::JdbcAdapter, ActiveRecord::ConnectionAdapters::Mysql2Adapter, ActiveRecord::ConnectionAdapters::PostgreSQLAdapter, ActiveRecord::ConnectionAdapters::SQLite3Adapter
- Defined in:
- lib/arjdbc/abstract/connection_management.rb
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
8 9 10 11 |
# File 'lib/arjdbc/abstract/connection_management.rb', line 8 def active? return unless @connection @connection.active? end |
#disconnect! ⇒ Object
25 26 27 28 29 |
# File 'lib/arjdbc/abstract/connection_management.rb', line 25 def disconnect! super # clear_cache! && reset_transaction return unless @connection @connection.disconnect! end |
#really_valid? ⇒ Boolean
13 14 15 16 |
# File 'lib/arjdbc/abstract/connection_management.rb', line 13 def really_valid? return unless @connection @connection.really_valid? end |
#reconnect! ⇒ Object
19 20 21 22 |
# File 'lib/arjdbc/abstract/connection_management.rb', line 19 def reconnect! super # clear_cache! && reset_transaction @connection.reconnect! # handles adapter.configure_connection end |