Method: QueryTracker::Tracker#reset_query_count

Defined in:
lib/query_tracker/recording/tracker.rb

#reset_query_countObject

This assums that in the same location of the code it will always be the same sql query



11
12
13
14
15
16
17
# File 'lib/query_tracker/recording/tracker.rb', line 11

def reset_query_count
  @query_tracker = Hash.new do |hash, key|
    hash[key] = { count: 0, location: Hash.new do |loc_hash, loc_key|
                                        loc_hash[loc_key] = { count: 0, sql: nil }
                                      end }
  end
end