class Mysql2::Client
Public Instance Methods
query(*args,&blk)
click to toggle source
# File lib/patches/db/mysql2.rb, line 19 def query(*args,&blk) return query_without_profiling(*args,&blk) unless SqlPatches.should_measure? result, record = SqlPatches.record_sql( args[0] ) do query_without_profiling(*args,&blk) end result.instance_variable_set("@miniprofiler_sql_id", record) if result result end
Also aliased as: query_without_profiling