instance method explain

Ruby on Rails 4.2.9

Since v4.0.13 Last seen in v6.0.6

Available in: v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6

Signature

explain(arel, binds = [])

No documentation comment.

Parameters

arel req
binds opt = []
Source
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 257
      def explain(arel, binds = [])
        sql = "EXPLAIN QUERY PLAN #{to_sql(arel, binds)}"
        ExplainPrettyPrinter.new.pp(exec_query(sql, 'EXPLAIN', []))
      end

Defined in activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb line 257 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::SQLite3Adapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close