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

Method RenderHeader

tools/shell/shell_renderer.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 void RenderHeader(PrintStream &out, ResultMetadata &result) override {
464 auto column_count = result.ColumnCount();
465 PrintRowSeparator(out, column_count, "+", column_width);
466 out.Print("| ");
467 for (idx_t c = 0; c < column_count; c++) {
468 out.RenderAlignedValue(result.column_names[c], column_width[c]);
469 out.Print(c == column_count - 1 ? " |\n" : " | ");
470 }
471 PrintRowSeparator(out, column_count, "+", column_width);
472 }
473
474 void RenderFooter(PrintStream &out, ResultMetadata &result) override {
475 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