MCPcopy
hub / github.com/dbcli/pgcli / generate_lines

Method generate_lines

pgcli/pyev.py:397–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

395 self.create_lines(nested_plan, prefix, depth + 1, width, index == len(plan["Plans"]) - 1)
396
397 def generate_lines(self):
398 self.string_lines = [
399 "○ Total Cost: %s" % self.intcomma(self.explain["Total Cost"]),
400 "○ Planning Time: %s" % self.duration_to_string(self.explain["Planning Time"]),
401 "○ Execution Time: %s" % self.duration_to_string(self.explain["Execution Time"]),
402 self.prefix_format("┬"),
403 ]
404 self.create_lines(
405 self.plan,
406 "",
407 0,
408 self.terminal_width,
409 len(self.plan.get("Plans", [])) == 1,
410 )
411
412 def get_list(self):
413 return "\n".join(self.string_lines)

Callers 1

loadMethod · 0.95

Calls 4

intcommaMethod · 0.95
duration_to_stringMethod · 0.95
prefix_formatMethod · 0.95
create_linesMethod · 0.95

Tested by

no test coverage detected