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

Function rq_to_sql

prqlc/prqlc/src/lib.rs:404–406  ·  view source on GitHub ↗

Generate SQL from RQ.

(rq: ir::rq::RelationalQuery, options: &Options)

Source from the content-addressed store, hash-verified

402
403/// Generate SQL from RQ.
404pub fn rq_to_sql(rq: ir::rq::RelationalQuery, options: &Options) -> Result<String, ErrorMessages> {
405 sql::compile(rq, options).map_err(|e| e.with_source(ErrorSource::SQL).into())
406}
407
408/// Generate PRQL code from PL AST
409pub fn pl_to_prql(pl: &pr::ModuleDef) -> Result<String, ErrorMessages> {

Callers 2

executeMethod · 0.50
test_from_jsonFunction · 0.50

Calls 2

with_sourceMethod · 0.80
compileFunction · 0.70

Tested by 1

test_from_jsonFunction · 0.40