-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for NOT
operator
#185
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #185 +/- ##
============================================
+ Coverage 95.29% 95.32% +0.03%
- Complexity 1851 1856 +5
============================================
Files 130 130
Lines 5099 5136 +37
============================================
+ Hits 4859 4896 +37
Misses 240 240 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add tests
-
with arrays like
$select->whereNot([ '@or' => [ [ 'id' => ['between' => [10, 100]], 'name' => 'Anton' ], ['status' => 'disabled'] ] ]);
-
with sequence like
->whereNot()->where()->whereNot()->orWhere()->whereNot()
ddfb9de
to
7604396
Compare
# Conflicts: # CHANGELOG.md
What's was changed
Support for the NOT operator in SQL queries has been added. To implement this functionality, new methods
whereNot
,andWhereNot
, andorWhereNot
have been added.Examples:
Closes: #182