Skip to content

Conversation

roxblnfk
Copy link
Member

@roxblnfk roxblnfk commented Aug 9, 2022

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

$database->select()
    ->from(['users'])
    ->where([
        'status' => [
            'IN' => ['active', 'blocked']
        ],
        'name' => [
            'NOT IN' => ['foo', 'bar']
        ],
    ]);

@roxblnfk roxblnfk added the type: feature New feature. label Aug 9, 2022
@roxblnfk roxblnfk added this to the 2.3.x milestone Aug 9, 2022
@roxblnfk roxblnfk requested a review from wolfy-j August 9, 2022 07:48
@codecov
Copy link

codecov bot commented Aug 9, 2022

Codecov Report

Merging #71 (0f10202) into 2.x (41fe0c7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x      #71   +/-   ##
=========================================
  Coverage     92.78%   92.79%           
- Complexity     1535     1537    +2     
=========================================
  Files            94       94           
  Lines          3897     3899    +2     
=========================================
+ Hits           3616     3618    +2     
  Misses          281      281           
Impacted Files Coverage Δ
src/Query/Traits/TokenTrait.php 93.33% <100.00%> (+0.12%) ⬆️

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

@roxblnfk roxblnfk requested a review from msmakouz August 9, 2022 08:06
@roxblnfk roxblnfk merged commit fa07de8 into 2.x Aug 9, 2022
@roxblnfk roxblnfk deleted the feature/array-in-in-short-syntax branch August 9, 2022 08:14
gam6itko pushed a commit to gam6itko/database that referenced this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants