2 releases

0.13.2 Oct 11, 2024
0.13.0 Jul 25, 2024

#528 in Procedural macros

Download history 112/week @ 2024-07-22 16/week @ 2024-07-29 16/week @ 2024-09-16 7/week @ 2024-09-23 1/week @ 2024-09-30 185/week @ 2024-10-07 23/week @ 2024-10-14

217 downloads per month

Apache-2.0

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