Macro diesel::diesel_postfix_operator [−][src]
macro_rules! diesel_postfix_operator { ($name : ident, $operator : expr) => { ... }; ($name : ident, $operator : expr, backend : $backend : ty) => { ... }; ($name : ident, $operator : expr, $return_ty : ty) => { ... }; ($name : ident, $operator : expr, $return_ty : ty, backend : $backend : ty) => { ... }; }
Expand description
Useful for libraries adding support for new SQL types. Apps should never need to call this.
Similar to diesel_infix_operator!
, but the generated type will only take
a single argument rather than two. The operator SQL will be placed after
the single argument. See diesel_infix_operator!
for example usage.