(w: &mut W, ast: &[pq_ast::SqlTransform])
| 313 | } |
| 314 | |
| 315 | fn write_repr_pq_early<W: Write>(w: &mut W, ast: &[pq_ast::SqlTransform]) -> Result { |
| 316 | writeln!(w, r#"<div class="pq repr">"#)?; |
| 317 | |
| 318 | let json = serde_json::to_string(ast).unwrap(); |
| 319 | let json_node: serde_json::Value = serde_json::from_str(&json).unwrap(); |
| 320 | write_json_ast_node(w, json_node, false)?; |
| 321 | |
| 322 | writeln!(w, "</div>") |
| 323 | } |
| 324 | |
| 325 | fn write_repr_pq<W: Write>(w: &mut W, ast: &pq_ast::SqlQuery) -> Result { |
| 326 | writeln!(w, r#"<div class="pq repr">"#)?; |
no test coverage detected