Exception: Sequel::Postgres::AutoParameterizeDuplicateQueryDetection::DuplicateQueries
- Inherits:
-
Error
- Object
- StandardError
- Error
- Sequel::Postgres::AutoParameterizeDuplicateQueryDetection::DuplicateQueries
- Defined in:
- lib/sequel/extensions/pg_auto_parameterize_duplicate_query_detection.rb
Overview
Exception class raised when duplicate queries are detected.
Instance Attribute Summary collapse
-
#queries ⇒ Object
readonly
A hash of queries that were duplicate.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, queries) ⇒ DuplicateQueries
constructor
A new instance of DuplicateQueries.
Methods inherited from Error
Constructor Details
#initialize(message, queries) ⇒ DuplicateQueries
77 78 79 80 |
# File 'lib/sequel/extensions/pg_auto_parameterize_duplicate_query_detection.rb', line 77 def initialize(, queries) @queries = queries super() end |
Instance Attribute Details
#queries ⇒ Object (readonly)
A hash of queries that were duplicate. Keys are arrays with 2 entries, the first being the query SQL, and the second being the related call stack (backtrace). The values are the number of query executions.
75 76 77 |
# File 'lib/sequel/extensions/pg_auto_parameterize_duplicate_query_detection.rb', line 75 def queries @queries end |