Class: ArQueryMatchers::Queries::CreateCounter

Inherits:
Object
  • Object
show all
Defined in:
lib/ar_query_matchers/queries/create_counter.rb

Overview

A specialized QueryCounter for “creates”. It uses a simple regex to identify and parse sql INSERT queries. For more information, see the QueryCounter class.

Defined Under Namespace

Classes: CreateQueryFilter

Class Method Summary collapse

Class Method Details

.instrument(&block) ⇒ Object



13
14
15
# File 'lib/ar_query_matchers/queries/create_counter.rb', line 13

def self.instrument(&block)
  QueryCounter.new(CreateQueryFilter.new).instrument(&block)
end