Exception: Sequel::Postgres::AutoParameterizeDuplicateQueryDetection::DuplicateQueries

Inherits:
Error
  • Object
show all
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

Attributes inherited from Error

#wrapped_exception

Instance Method Summary collapse

Methods inherited from Error

#cause

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(message, queries)
  @queries = queries
  super(message)
end

Instance Attribute Details

#queriesObject (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