[][src]Macro elephantry::pk

macro_rules! pk {
    ($($pk:ident),+ $(,)?) => { ... };
    ($($key:expr => $value:expr),+ $(,)?) => { ... };
}

Easily create pk argument for where clause, including find_by_pk function

pk!(uuid) pk![uuid, name] pk!{uuid => "uuid", name => "name"}