macro_rules! query {
($col:tt == $val:expr) => { ... };
($col:tt != $val:expr) => { ... };
($col:tt > $val:expr) => { ... };
($col:tt < $val:expr) => { ... };
($col:tt >= $val:expr) => { ... };
($col:tt <= $val:expr) => { ... };
($left:tt & $right:tt) => { ... };
($left:tt | $right:tt) => { ... };
( ( $($inner:tt)+ ) ) => { ... };
}Expand description
Macro to allow writing queries with a natural syntax. Example: let expr = q!(“name” == “Org X”) | q!(“category” != “Finance”) & q!(“property” > 5);