10 releases (4 breaking)
0.8.1 | Apr 30, 2023 |
---|---|
0.8.0 | Apr 14, 2023 |
0.7.1 | Apr 4, 2023 |
0.6.1 | Mar 13, 2023 |
0.4.2 | Jan 26, 2023 |
#602 in Procedural macros
49 downloads per month
565KB
16K
SLoC
Macros for PRQL compilation at build time.
use prql_compiler_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
~12MB
~246K SLoC