class PG::Result
Public Instance Methods
Source
# File lib/patches/db/pg/alias_method.rb, line 14 def each(*args, &blk) return each_without_profiling(*args, &blk) unless defined?(@miniprofiler_sql_id) mp_report_sql do each_without_profiling(*args, &blk) end end
Also aliased as: each_without_profiling
Source
# File lib/patches/db/pg/alias_method.rb, line 21 def mp_report_sql(&block) start = Process.clock_gettime(Process::CLOCK_MONOTONIC) result = yield elapsed_time = SqlPatches.elapsed_time(start) @miniprofiler_sql_id.report_reader_duration(elapsed_time) result end
Source
# File lib/patches/db/pg/alias_method.rb, line 7 def values(*args, &blk) return values_without_profiling(*args, &blk) unless defined?(@miniprofiler_sql_id) mp_report_sql do values_without_profiling(*args , &blk) end end
Also aliased as: values_without_profiling