Macro elephantry::pk
source · macro_rules! pk { ($($pk:ident),+ $(,)?) => { ... }; ($($key:expr => $value:expr),+ $(,)?) => { ... }; }
Expand description
Easily create pk argument for where clause, including find_by_pk
function.
pk!(uuid);
pk![uuid, name];
pk!{uuid => "uuid", name => "name"};