ne method

Expr<bool?> ne(
  1. Operand<T> other
)

Compares with a value or SQL expression using <>.

A literal .value(null) produces IS NOT NULL. Expression operands retain SQL NULL semantics.

Implementation

Expr<bool?> ne(Operand<T> other) => other is _Value<T> && other.value == null
    ? Expr.internal(
        UnaryNode('IS NOT NULL', expressionNode, postfix: true),
        Codecs.boolean.nullable(),
      )
    : _compare('<>', _operand(other));