eq method

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

Compares with a value or SQL expression using =.

A literal .value(null) produces IS NULL. Expression operands retain SQL NULL semantics: a NULL on either side yields SQL UNKNOWN.

Implementation

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