Macro diesel::postfix_operator

source ·
macro_rules! 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 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 infix_operator! for example usage.