bsql 0.22.2

Safe SQL for Rust — if it compiles, the SQL is correct
Documentation
1
2
3
4
5
6
fn main() {
    let a: Option<i32> = Some(1);
    let _ = bsql::query!(
        "SELECT id FROM tickets WHERE 1 = 1 [[AND department_id = $a: Option<i32>]]"
    );
}