Class: ActiveRecord::StatementCache::Query
- Defined in:
- activerecord/lib/active_record/statement_cache.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#retryable ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(sql, retryable:) ⇒ Query
constructor
A new instance of Query.
- #sql_for(binds, connection) ⇒ Object
Constructor Details
#initialize(sql, retryable:) ⇒ Query
Returns a new instance of Query.
36 37 38 39 |
# File 'activerecord/lib/active_record/statement_cache.rb', line 36 def initialize(sql, retryable:) @sql = sql @retryable = retryable end |
Instance Attribute Details
#retryable ⇒ Object (readonly)
:nodoc:
34 35 36 |
# File 'activerecord/lib/active_record/statement_cache.rb', line 34 def retryable @retryable end |
Instance Method Details
#sql_for(binds, connection) ⇒ Object
41 42 43 |
# File 'activerecord/lib/active_record/statement_cache.rb', line 41 def sql_for(binds, connection) @sql end |