123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::StatementCache::Query

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: activerecord/lib/active_record/statement_cache.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(sql, retryable:) ⇒ Query

[ GitHub ]

  
# File 'activerecord/lib/active_record/statement_cache.rb', line 36

def initialize(sql, retryable:)
  @sql = sql
  @retryable = retryable
end

Instance Attribute Details

#retryable (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/statement_cache.rb', line 34

attr_reader :retryable

Instance Method Details

#sql_for(binds, connection)

[ GitHub ]

  
# File 'activerecord/lib/active_record/statement_cache.rb', line 41

def sql_for(binds, connection)
  @sql
end