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

Function write_repr_sql

prqlc/prqlc/src/debug/render_html.rs:345–349  ·  view source on GitHub ↗
(w: &mut W, query: &str)

Source from the content-addressed store, hash-verified

343}
344
345fn write_repr_sql<W: Write>(w: &mut W, query: &str) -> Result {
346 writeln!(w, r#"<div class="sql repr">"#)?;
347 writeln!(w, "<pre><code>{query}</code></pre>")?;
348 writeln!(w, "</div>")
349}
350
351fn write_key_values<W: Write>(w: &mut W, pairs: &[(&'static str, &dyn Debug)]) -> Result {
352 writeln!(w, r#"<div class="key-values">"#)?;

Callers 1

write_titled_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected