rsql-parser icon indicating copy to clipboard operation
rsql-parser copied to clipboard

support for NOT operator

Open kamaydeo opened this issue 9 years ago • 4 comments

As far as I know, AND and OR are supported. Logical NOT operator support will be useful as well.

kamaydeo avatar Jun 15 '16 12:06 kamaydeo

Could you please provide me some read-world example where it would be actually useful?

jirutka avatar Jun 15 '16 15:06 jirutka

userType!=Employee and not (email=="*example.com*" or emails=="*example.org*" and salary < 100000)

It could be done using AND and OR combination but in some case NOT is more expressive.

kamaydeo avatar Jun 15 '16 16:06 kamaydeo

+1 I agree this should be supported, the intention is more straightforward

vineey avatar Jun 18 '16 04:06 vineey

+1 It's also useful for when you've generated a query dynamically and simply want to invert it based on your required logic rather than having to factor the not through. I've had to work around it myself.

RutledgePaulV avatar Sep 14 '16 23:09 RutledgePaulV