class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Public Instance Methods

exec_query_with_action_cost(sql, name='', binds = []) click to toggle source
# File lib/action_cost/extensions/postgresql_adapter.rb, line 14
def exec_query_with_action_cost(sql, name='', binds = [])
  #Rails.logger.debug "exec_query_with_action_cost: #{sql}"
  parser = ActionCost::SqlParser.new(sql)
  ActionCost::Middleware.push_sql_parser(parser)
  exec_query_without_action_cost(sql, name, binds)
end
execute_with_action_cost(sql, name='') click to toggle source
# File lib/action_cost/extensions/postgresql_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