instance method
internal_build_intent
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
internal_build_intent(sql, name = "SQL", binds = [], prepare: false, allow_retry: false, materialize_transactions: true, &block)
No documentation comment.
Parameters
-
sqlreq -
nameopt = "SQL" -
bindsopt = [] -
preparekey = false -
allow_retrykey = false -
materialize_transactionskey = true -
blockblock
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 860
def internal_build_intent(sql, name = "SQL", binds = [], prepare: false, allow_retry: false, materialize_transactions: true, &block)
QueryIntent.new(
adapter: self,
raw_sql: sql,
name: name,
binds: binds,
prepare: prepare,
allow_retry: allow_retry,
materialize_transactions: materialize_transactions
)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 860
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements