keelson-macros 0.1.1

keelson's derive macros: #[derive(Bind)] for newtype column overrides and #[derive(FromRow)] for row mapping.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! An unbalanced brace is a mistake in the SQL, and is refused with the way to
//! write a literal one.

use keelson_sqlite::sql;

fn main() {
    let x = 1;
    let _ = sql!("SELECT * FROM t WHERE a = {x AND b = 2");
    let _ = sql!("SELECT * FROM t WHERE a = 1} AND b = 2");
    let _ = sql!("SELECT * FROM t WHERE a = {}");
}