2 releases
0.13.2 | Oct 11, 2024 |
---|---|
0.13.0 | Jul 25, 2024 |
#528 in Procedural macros
217 downloads per month
735KB
18K
SLoC
Macros for PRQL compilation at build time.
use prqlc_macros::prql_to_sql;
let sql: &str = prql_to_sql!("from albums | select {title, artist_id}");
assert_eq!(sql, "SELECT title, artist_id FROM albums");
"at build time" means that PRQL will be compiled during Rust compilation, producing errors alongside Rust errors. Limited to string literals.
Dependencies
~10–19MB
~257K SLoC