Class: ArQueryMatchers::Queries::QueryFilter
- Inherits:
-
Object
- Object
- ArQueryMatchers::Queries::QueryFilter
- Defined in:
- lib/ar_query_matchers/queries/query_filter.rb
Overview
An instance of this interface must be provided to the QueryCounter class. it allows one to customize which queries it wants to capture.
Direct Known Subclasses
CreateCounter::CreateQueryFilter, LoadCounter::LoadQueryFilter, UpdateCounter::UpdateQueryFilter
Instance Method Summary collapse
-
#filter_map(_name, _sql) ⇒ Object
For example: “User Load”.
Instance Method Details
#filter_map(_name, _sql) ⇒ Object
For example: “User Load”
For example: “SELECT ‘users`.* FROM `users` ..”
By returning nil we omit the query By not returning nil, we are associating this query with a model_name.
17 18 19 |
# File 'lib/ar_query_matchers/queries/query_filter.rb', line 17 def filter_map(_name, _sql) raise NotImplementedError end |