method
new
new(connection, logger = nil, pool = nil)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 60 def initialize(connection, logger = nil, pool = nil) #:nodoc: super() @active = nil @connection = connection @in_use = false @instrumenter = ActiveSupport::Notifications.instrumenter @last_use = false @logger = logger @open_transactions = 0 @pool = pool @query_cache = Hash.new { |h,sql| h[sql] = {} } @query_cache_enabled = false @schema_cache = SchemaCache.new self @visitor = nil end