module ArJdbc::SQLite3::ExplainSupport
Public Instance Methods
explain(arel, binds = [])
click to toggle source
# File lib/arjdbc/sqlite3/explain_support.rb, line 8 def explain(arel, binds = []) sql = "EXPLAIN QUERY PLAN #{to_sql(arel, binds)}" result = exec_query(sql, "EXPLAIN", binds) ExplainPrettyPrinter.new.pp result end
supports_explain?()
click to toggle source
# File lib/arjdbc/sqlite3/explain_support.rb, line 4 def supports_explain? true end