module AdvancedConnection::ActiveRecordExt::ConnectionPool::StatementPooling

Public Instance Methods

new_connection_with_statement_pooling() click to toggle source
# File lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb, line 31
def new_connection_with_statement_pooling
  new_connection_without_statement_pooling.tap { |conn|
    unless conn.respond_to? :around_connection_checkin
      conn.class.instance_exec {
        include AbstractAdapter::StatementPooling
      }
    end
  }
end