3 releases

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

#1183 in Procedural macros

Download history 1/week @ 2024-10-20 3/week @ 2024-12-08 34/week @ 2025-01-19 74/week @ 2025-01-26 11/week @ 2025-02-02

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–20MB
~272K SLoC