(prql_query: &str, options: Option<CompileOptions>)
| 7 | |
| 8 | #[wasm_bindgen] |
| 9 | pub 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] |
| 17 | pub fn prql_to_pl(prql_query: &str) -> Option<String> { |
no test coverage detected