in tools/hologres_excute_sql.py [0:0]
def _to_html_table(self, data: list[dict]) -> str:
"""Generate standard HTML table"""
html = ["<table border='1'>"]
html.append("<tr>" + "".join(f"<th>{col}</th>" for col in data[0].keys()) + "</tr>")
for row in data:
html.append(
"<tr>" +
"".join(f"<td>{self._custom_serializer(val)}</td>" for val in row.values()) +
"</tr>"
)
html.append("</table>")
return "".join(html)