class ActiveRecord::ConnectionAdapters::Mysql2Adapter

Public Instance Methods

execute_with_action_cost(sql, name='') click to toggle source
# File lib/action_cost/extensions/mysql2_adapter.rb, line 5
def execute_with_action_cost(sql, name='')
  #Rails.logger.debug "execute_with_action_cost: #{sql}"
  parser = ActionCost::SqlParser.new(sql)
  ActionCost::Middleware.push_sql_parser(parser)
  execute_without_action_cost(sql, name)
end