Closed taka-oyama closed 5 months ago
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Version 8.2.0 introduces a new method, whereInEmbedded
, to the query builder, enabling querying with embedded values rather than parameterized ones. This change addresses binding limitations and potential errors while cautioning about performance and security. Additionally, corresponding tests ensure the method's reliability for handling large input sets.
Files | Change Summary |
---|---|
CHANGELOG.md | Added entry for version 8.2.0 detailing the addition of Query/Builder::whereInEmbedded . |
README.md | Added explanation on the limitation of parameter binding and introduced the alternative embedding method. |
src/Query/Builder.php | Added the whereInEmbedded method to construct WHERE IN clauses with embedded values. |
tests/Query/BuilderTest.php | Included a test case to validate the whereInEmbedded method's performance with more than 950 parameters. |
When queries grew too dense, With bindings making no sense, Along came embedded might, To set the queries right. Now, values safely inlined, Performance woes left behind. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This will allow users to use whereIn without the fear of reaching the 950 query parameter limit.
Summary by CodeRabbit
New Features
Documentation
Tests