sea-query icon indicating copy to clipboard operation
sea-query copied to clipboard

Add `EXISTS` unary operator, fix #216

Open RomainMazB opened this issue 3 years ago • 2 comments

First draft to fix #216 , the next step would be to handle the wildcard to constraint a SELECT * without any further columns.

RomainMazB avatar Dec 30 '21 19:12 RomainMazB

This PR is ok for review, but rely on #219 , so it should be merged before this one.

There will be some conflict inside the tests, I renamed the methods name so you can just manually merge the tests in the good order.

RomainMazB avatar Dec 30 '21 22:12 RomainMazB

As discussed in another PR, I think we don't need to introduce a new UnarySelect variant, instead we can extend the existing SubQuery variant to include one more enum probably SubQueryOper which could itself be Exists or None

tyt2y3 avatar Jan 02 '22 15:01 tyt2y3

Close PR, continue: https://github.com/SeaQL/sea-query/pull/379

ikrivosheev avatar Aug 12 '22 09:08 ikrivosheev