Method: Sequel::Postgres::DatasetMethods#explain
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
#explain(opts = OPTS) ⇒ Object
Return the results of an EXPLAIN query as a string
1254 1255 1256 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 1254 def explain(opts=OPTS) with_sql((opts[:analyze] ? 'EXPLAIN ANALYZE ' : 'EXPLAIN ') + select_sql).map(:'QUERY PLAN').join("\r\n") end |