| 697 | } |
| 698 | |
| 699 | void RenderHeader(PrintStream &out, ResultMetadata &result) override { |
| 700 | auto column_count = result.ColumnCount(); |
| 701 | |
| 702 | out.Print("\\begin{tabular}{|"); |
| 703 | for (idx_t i = 0; i < column_count; i++) { |
| 704 | if (state.ColumnTypeIsInteger(result.type_names[i].c_str())) { |
| 705 | out.Print("r"); |
| 706 | } else { |
| 707 | out.Print("l"); |
| 708 | } |
| 709 | } |
| 710 | out.Print("|}\n"); |
| 711 | out.Print("\\hline\n"); |
| 712 | for (idx_t c = 0; c < column_count; c++) { |
| 713 | out.RenderAlignedValue(result.column_names[c], column_width[c]); |
| 714 | out.Print(c == column_count - 1 ? GetRowSeparator() : GetColumnSeparator()); |
| 715 | } |
| 716 | out.Print("\\hline\n"); |
| 717 | } |
| 718 | |
| 719 | void RenderFooter(PrintStream &out, ResultMetadata &) override { |
| 720 | out.Print("\\hline\n"); |
nothing calls this directly
no test coverage detected