3 releases

0.13.3 Jan 25, 2025
0.13.2 Oct 11, 2024
0.13.0 Jul 25, 2024

#1185 in Procedural macros

Download history 1/week @ 2024-12-04 2/week @ 2024-12-11 97/week @ 2025-01-22 17/week @ 2025-01-29 5/week @ 2025-02-05

119 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
~271K SLoC