(prql_query: &str)
| 60 | |
| 61 | #[pyfunction] |
| 62 | pub fn prql_lineage(prql_query: &str) -> PyResult<String> { |
| 63 | prqlc_lib::prql_to_pl(prql_query) |
| 64 | .and_then(prqlc_lib::internal::pl_to_lineage) |
| 65 | .and_then(|x| prqlc_lib::internal::json::from_lineage(&x)) |
| 66 | .map_err(|err| PyErr::new::<exceptions::PyValueError, _>(err.to_json())) |
| 67 | } |
| 68 | |
| 69 | #[pyfunction] |
| 70 | pub fn pl_to_lineage(pl_json: &str) -> PyResult<String> { |
nothing calls this directly
no test coverage detected