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

Method RenderRow

tools/shell/shell_renderer.cpp:838–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836 }
837
838 void RenderRow(PrintStream &out, ResultMetadata &result, RowData &row) override {
839 if (row.row_index > 0) {
840 out.Print(state.rowSeparator);
841 }
842 auto &data = row.data;
843 auto &col_names = result.column_names;
844 for (idx_t i = 0; i < data.size(); i++) {
845 idx_t space_count = header_width - col_names[i].size();
846 if (space_count > 0) {
847 out.Print(string(space_count, ' '));
848 }
849 out.Print(col_names[i]);
850 out.Print(" = ");
851 out.Print(data[i]);
852 out.Print(state.rowSeparator);
853 }
854 }
855
856 idx_t header_width = 0;
857};

Callers

nothing calls this directly

Calls 2

PrintMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected