| 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 | }; |