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