macro_rules! updt {
($($tt:tt)*) => { ... };
}
Expand description
ยงExample
use fire_postgres::updt;
let a = &"val".to_string();
let b = &"val2".to_string();
let query = updt!{
a,
"b": b
}.into_query();
assert_eq!(r#""a" = $1, "b" = $2"#, query.sql().to_string().trim());