Module: SeqScanner::PlanFormatter
- Defined in:
- lib/seq_scanner/plan_formatter.rb
Class Method Summary collapse
Class Method Details
.format(query_plan) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/seq_scanner/plan_formatter.rb', line 5 def format(query_plan) query_plan.map do |line| if line =~ /Seq Scan/ Paint[line, :red] else Paint[line, :white] end end.join("\n") end |