instance method
connection_explain
Ruby on Rails 7.1.6
Since v7.1.6 Last seen in v7.1.6 PrivateSignature
connection_explain(sql, binds, options)
No documentation comment.
Parameters
-
sqlreq -
bindsreq -
optionsreq
Source
# File activerecord/lib/active_record/explain.rb, line 62
def connection_explain(sql, binds, options)
if connection.method(:explain).parameters.size == 2
ActiveRecord.deprecator.warn(<<~MSG.squish)
The current database adapter, #{connection.adapter_name}, does not support explain options.
To remove this warning, the adapter must implement `build_explain_clause(options = [])`.
MSG
connection.explain(sql, binds)
else
connection.explain(sql, binds, options)
end
end
Defined in activerecord/lib/active_record/explain.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Explain