(prql_query: &str)
| 19 | |
| 20 | #[pyfunction] |
| 21 | pub fn prql_to_pl(prql_query: &str) -> PyResult<String> { |
| 22 | prqlc_lib::prql_to_pl(prql_query) |
| 23 | .and_then(|x| prqlc_lib::json::from_pl(&x)) |
| 24 | .map_err(|err| PyErr::new::<exceptions::PyValueError, _>(err.to_json())) |
| 25 | } |
| 26 | |
| 27 | #[pyfunction] |
| 28 | pub fn pl_to_prql(pl_json: &str) -> PyResult<String> { |
no test coverage detected