Skip to content

Conversation

@Tigrov
Copy link
Member

@Tigrov Tigrov commented Apr 28, 2024

  • Rename batchInsert() to insertBatch() in DMLQueryBuilderInterface and CommandInterface
  • Change parameters order to from $table, $columns, $rows to $table, $rows, $columns
  • Add default value [] for $columns parameter

From batchInsert(string $table, array $columns, iterable $rows)
to insertBatch(string $table, iterable $rows, array $columns = [])

Related PRs

Q A
Is bugfix?
New feature? ✔️
Breaks BC? ✔️
Fixed issues #772

@codecov
Copy link

codecov bot commented Apr 28, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 99.44%. Comparing base (2de4777) to head (ed8d94c).
Report is 1 commits behind head on master.

❗ Current head ed8d94c differs from pull request most recent head b206cca. Consider uploading reports for the commit b206cca to get more accurate results

Files Patch % Lines
src/QueryBuilder/AbstractDMLQueryBuilder.php 85.71% 1 Missing ⚠️
src/QueryBuilder/AbstractQueryBuilder.php 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #829      +/-   ##
============================================
- Coverage     99.56%   99.44%   -0.13%     
- Complexity     1320     1323       +3     
============================================
  Files            64       64              
  Lines          3246     3251       +5     
============================================
+ Hits           3232     3233       +1     
- Misses           14       18       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add info to UPGRADE.md and changelog

*
* @psalm-param BatchValues $rows
*
* @deprecated Use (@see insertBatch()) instead. It will be removed in version 3.0.0.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After merge PR need to create new issue about remove it.

* @psalm-param BatchValues $rows
* @psalm-param ParamsType $params
*
* @deprecated Use (@see insertBatch()) instead. It will be removed in version 3.0.0.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After merge PR need to create new issue about remove it.

@Tigrov
Copy link
Member Author

Tigrov commented May 1, 2024

Add info to UPGRADE.md and changelog

Done

@Tigrov Tigrov merged commit ce1ddb5 into master May 5, 2024
@Tigrov Tigrov deleted the batchInsert-to-insertBatch branch May 5, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants