cycle / database

Database Abstraction Layer, Schema Introspection, Schema Generation, Query Builders
MIT License
54 stars 22 forks source link

Add supporting for array values in the `NOT IN` operator #70

Closed roxblnfk closed 2 years ago

roxblnfk commented 2 years ago

Now you don't need to wrap an array value in the Parameter injection.

$database->select()
    ->from(['users'])
    ->where('status', 'NOT IN', ['active', 'blocked']);
codecov[bot] commented 2 years ago

Codecov Report

Merging #70 (49541f4) into 2.x (d930b5c) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x      #70   +/-   ##
=========================================
  Coverage     92.78%   92.78%           
  Complexity     1535     1535           
=========================================
  Files            94       94           
  Lines          3897     3897           
=========================================
  Hits           3616     3616           
  Misses          281      281           
Impacted Files Coverage Δ
src/Query/Traits/TokenTrait.php 93.20% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.