(w: &mut W, ast: &rq::RelationalQuery)
| 303 | } |
| 304 | |
| 305 | fn write_repr_rq<W: Write>(w: &mut W, ast: &rq::RelationalQuery) -> Result { |
| 306 | writeln!(w, r#"<div class="rq repr">"#)?; |
| 307 | |
| 308 | let json = serde_json::to_string(ast).unwrap(); |
| 309 | let json_node: serde_json::Value = serde_json::from_str(&json).unwrap(); |
| 310 | write_json_ast_node(w, json_node, false)?; |
| 311 | |
| 312 | writeln!(w, "</div>") |
| 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">"#)?; |
no test coverage detected