Module: ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::Explain
- Defined in:
- lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb
Constant Summary collapse
- SQLSERVER_STATEMENT_PREFIX =
'EXEC sp_executesql '
- SQLSERVER_PARAM_MATCHER =
/@\d+ =/
Instance Method Summary collapse
Instance Method Details
#exec_explain(queries) ⇒ Object
10 11 12 13 |
# File 'lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb', line 10 def exec_explain(queries) unprepared_queries = queries.map { |sql, bind| [unprepare_sqlserver_statement(sql), bind] } super(unprepared_queries) end |