instance method explain

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

explain(arel, binds = [])

DATABASE STATEMENTS ======================================

Parameters

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

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

Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close