pub fn plan_tree(rows: &[Vec<Value<'static>>]) -> Vec<String>Expand description
Renders EXPLAIN QUERY PLAN’s four columns as the tree the reference draws.
The rows are a tree and were being printed as rows. Each carries an id
and its parent’s id, and the reference draws them under a QUERY PLAN
heading, with |-- for a node that has a sibling after it and a backtick
arm for the last, indented three characters per level - which is how a
subquery under a step is told from a step beside it. Printing the raw four
columns left the shape for the reader to work out.
@param rows - the plan’s rows: id, parent, notused, detail