(rq_json: &str)
| 43 | |
| 44 | #[wasm_bindgen] |
| 45 | pub 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] |
nothing calls this directly
no test coverage detected