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

Function prql_to_pl

prqlc/bindings/prqlc-python/src/lib.rs:21–25  ·  view source on GitHub ↗
(prql_query: &str)

Source from the content-addressed store, hash-verified

19
20#[pyfunction]
21pub 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]
28pub fn pl_to_prql(pl_json: &str) -> PyResult<String> {

Callers 1

prql_lineageFunction · 0.70

Calls 2

from_plFunction · 0.85
to_jsonMethod · 0.80

Tested by

no test coverage detected