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

Method RenderHeader

tools/shell/shell_renderer.cpp:534–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532 }
533
534 void RenderHeader(PrintStream &out, ResultMetadata &result) override {
535 auto column_count = result.ColumnCount();
536 out.Print(GetRowStart());
537 for (idx_t c = 0; c < column_count; c++) {
538 if (c > 0) {
539 out.Print(GetColumnSeparator());
540 }
541 out.RenderAlignedValue(result.column_names[c], column_width[c]);
542 }
543 out.Print(GetRowSeparator());
544 PrintMarkdownSeparator(out, column_count, "|", result.types, column_width);
545 }
546
547 void PrintMarkdownSeparator(PrintStream &out, idx_t nArg, const char *zSep,
548 const vector<duckdb::LogicalType> &colTypes, const vector<idx_t> &actualWidth) {

Callers

nothing calls this directly

Calls 3

RenderAlignedValueMethod · 0.80
ColumnCountMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected