method

explain

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SQLite3Adapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

explain(arel, binds = [])
public

No documentation available.

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