20 unstable releases (7 breaking)

0.11.3 Feb 11, 2024
0.11.1 Dec 26, 2023
0.10.1 Nov 14, 2023
0.9.2 Jul 25, 2023
0.6.1 Mar 13, 2023

#639 in Procedural macros

Download history 120/week @ 2024-01-13 55/week @ 2024-01-20 160/week @ 2024-01-27 20/week @ 2024-02-03 36/week @ 2024-02-10 248/week @ 2024-02-24 7/week @ 2024-03-02 10/week @ 2024-03-09 2/week @ 2024-03-16 12/week @ 2024-03-30

279 downloads per month

Apache-2.0

625KB
15K 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

~12–23MB
~334K SLoC