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
//! `sql!` is not `format!`: the values go in the holes, not after the string.
//! Accepting trailing arguments would make the positional-binding mistake the
//! macro exists to remove expressible again.

use keelson_sqlite::sql;

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