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

#616 in Procedural macros

Download history 172/week @ 2024-01-29 44/week @ 2024-02-05 254/week @ 2024-02-26 2/week @ 2024-03-04 11/week @ 2024-03-11 12/week @ 2024-04-01

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