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 `IN` operator #69

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', 'IN', ['active', 'blocked']);
codecov[bot] commented 2 years ago

Codecov Report

Merging #69 (f022c0a) into 2.x (bd48dec) will increase coverage by 0.00%. The diff coverage is 100.00%.

:exclamation: Current head f022c0a differs from pull request most recent head f2150dc. Consider uploading reports for the commit f2150dc to get more accurate results

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

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