macro_rules! safe_sql {
(SELECT $($col:ident),* FROM $table:ident) => { ... };
(INSERT INTO $table:ident ($($col:ident),*) VALUES) => { ... };
(UPDATE $table:ident SET $($col:ident),*) => { ... };
(DELETE FROM $table:ident) => { ... };
}Expand description
Macro for safely building SQL statements