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

Function prql_lineage

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

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 3

from_lineageFunction · 0.85
to_jsonMethod · 0.80
prql_to_plFunction · 0.70

Tested by

no test coverage detected