MCPcopy Create free account
hub / github.com/PRQL/prql / write_repr_rq

Function write_repr_rq

prqlc/prqlc/src/debug/render_html.rs:305–313  ·  view source on GitHub ↗
(w: &mut W, ast: &rq::RelationalQuery)

Source from the content-addressed store, hash-verified

303}
304
305fn 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
315fn write_repr_pq_early<W: Write>(w: &mut W, ast: &[pq_ast::SqlTransform]) -> Result {
316 writeln!(w, r#"<div class="pq repr">"#)?;

Callers 1

write_titled_entryFunction · 0.85

Calls 1

write_json_ast_nodeFunction · 0.85

Tested by

no test coverage detected