PRQL compiler
prql-compiler
contains the implementation of PRQL's compiler, written in Rust.
For more on PRQL, check out the PRQL website or the PRQL repo.
For more usage examples and the library documentation, check out the
prql-compiler
documentation.
Installation
cargo add prql-compiler
Examples
Compile a PRQL string to a SQLite dialect string.
src/main.rs
use ;
let prql = "from employees | select {name, age}";
let opts = &Options ;
let sql = compile.unwrap;
assert_eq!;