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

Function rq_to_sql

prqlc/bindings/js/src/lib.rs:45–51  ·  view source on GitHub ↗
(rq_json: &str)

Source from the content-addressed store, hash-verified

43
44#[wasm_bindgen]
45pub fn rq_to_sql(rq_json: &str) -> Option<String> {
46 return_or_throw(
47 Ok(rq_json)
48 .and_then(prqlc::json::to_rq)
49 .and_then(|x| prqlc::rq_to_sql(x, &prqlc::Options::default())),
50 )
51}
52
53/// Compilation options for SQL backend of the compiler.
54#[wasm_bindgen]

Callers

nothing calls this directly

Calls 1

return_or_throwFunction · 0.85

Tested by

no test coverage detected