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

Function compile

prqlc/bindings/js/src/lib.rs:9–14  ·  view source on GitHub ↗
(prql_query: &str, options: Option<CompileOptions>)

Source from the content-addressed store, hash-verified

7
8#[wasm_bindgen]
9pub fn compile(prql_query: &str, options: Option<CompileOptions>) -> Option<String> {
10 return_or_throw(
11 prqlc::compile(prql_query, &options.map(|x| x.into()).unwrap_or_default())
12 .map_err(|e| e.composed(&prql_query.into())),
13 )
14}
15
16#[wasm_bindgen]
17pub fn prql_to_pl(prql_query: &str) -> Option<String> {

Calls 3

return_or_throwFunction · 0.85
mapMethod · 0.80
composedMethod · 0.80

Tested by

no test coverage detected