Expand description

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.

Macros§