MCPcopy Create free account
hub / github.com/duckdb/duckdb / RenderHeader

Method RenderHeader

tools/shell/shell_renderer.cpp:637–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 }
636
637 void RenderHeader(PrintStream &out, ResultMetadata &result) override {
638 auto column_count = result.ColumnCount();
639 PrintBoxRowSeparator(out, column_count, BOX_23, BOX_234, BOX_34, column_width);
640 out.Print(BOX_13 " ");
641 for (idx_t c = 0; c < column_count; c++) {
642 out.RenderAlignedValue(result.column_names[c], column_width[c]);
643 out.Print(c == column_count - 1 ? " " BOX_13 "\n" : " " BOX_13 " ");
644 }
645 PrintBoxRowSeparator(out, column_count, BOX_123, BOX_1234, BOX_134, column_width);
646 }
647
648 void RenderFooter(PrintStream &out, ResultMetadata &result) override {
649 auto column_count = result.ColumnCount();

Callers

nothing calls this directly

Calls 3

RenderAlignedValueMethod · 0.80
ColumnCountMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected