(w: &mut W, ast: &sqlparser::ast::Query)
| 333 | } |
| 334 | |
| 335 | fn write_repr_sql_parser<W: Write>(w: &mut W, ast: &sqlparser::ast::Query) -> Result { |
| 336 | writeln!(w, r#"<div class="sql-parser repr">"#)?; |
| 337 | |
| 338 | let json = serde_json::to_string(ast).unwrap(); |
| 339 | let json_node: serde_json::Value = serde_json::from_str(&json).unwrap(); |
| 340 | write_json_ast_node(w, json_node, false)?; |
| 341 | |
| 342 | writeln!(w, "</div>") |
| 343 | } |
| 344 | |
| 345 | fn write_repr_sql<W: Write>(w: &mut W, query: &str) -> Result { |
| 346 | writeln!(w, r#"<div class="sql repr">"#)?; |
no test coverage detected