Methods
Instance Public methods
execute(sql, name = nil, async: false) Link
Executes the SQL statement in the context of this connection.
explain(arel, binds = []) Link
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 33 def explain(arel, binds = []) sql = "EXPLAIN #{to_sql(arel, binds)}" start = Process.clock_gettime(Process::CLOCK_MONOTONIC) result = exec_query(sql, "EXPLAIN", binds) elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start MySQL::ExplainPrettyPrinter.new.pp(result, elapsed) end