notInSet method

Expression notInSet(
  1. Set<int> values
)
inherited

Creates and Expression checking if the value in the column is NOT included in the specified set of values. If the set is empty, the expression will always be true and match all rows.

Implementation

Expression notInSet(Set<T> values) {
  if (values.isEmpty) {
    return Constant.bool(true);
  }

  var valuesAsExpressions =
      values.map((e) => _encodeValueForQuery(e)).toList();

  return _NotInSetExpression(this, valuesAsExpressions) |
      _IsNullExpression(this);
}