Module: DbAgile::SequelAdapter::ClassMethods

Included in:
DbAgile::SequelAdapter
Defined in:
lib/dbagile/adapter/sequel/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#new(uri, options = {}) ⇒ Object

Overrided to add a SequelTracer instance if trace is on



8
9
10
11
12
13
14
# File 'lib/dbagile/adapter/sequel/class_methods.rb', line 8

def new(uri, options = {})
  if options[:trace_sql]
    SequelTracer.new(super(uri), options)
  else
    super(uri, options)
  end
end