Repository navigation
feat: support INSERT INTO ... SELECT FROM ... in QueryBuilder - #11896
Conversation
commit: |
This comment was marked as resolved.
This comment was marked as resolved.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to a39e57b
Previous suggestionsSuggestions up to commit 49f9445
Suggestions up to commit 6cad117
Suggestions up to commit 29a62dc
Suggestions up to commit bfc4128
✅ Suggestions up to commit c56364f
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
29a62dc to
bb1bc30
Compare
PR Code Suggestions ✨No code suggestions found for the PR. |
…t together in InsertQueryBuilder
bb1bc30 to
6cad117
Compare
Code Review by Qodo (Alpha)(Review updated until commit a39e57b)
1. Silent Column Mismatch in MERGE
|
|
Persistent review updated to latest commit 49f9445 |
|
Persistent review updated to latest commit a39e57b |
Description of change
This PR adds support for
INSERT INTO ... SELECT FROMqueries in QueryBuilder, addressing a common feature request for data migration and transformation tasks.What the change does:
valuesFromSelect()method toInsertQueryBuilder.tsthat accepts either aSelectQueryBuilderinstance or a callback functionINSERT INTO table (columns) SELECT ... FROM ...syntaxWhy this change is needed:
INSERT INTO ... SELECT FROMpattern is essential for data migration, archiving, ETL processes, and copying/transforming data between tablesHow I've verified it:
Notes:
@BeforeInsert,@AfterInsert) are skipped since no entity instances are createdupdateEntityoption has no effect withvaluesFromSelect()Pull-Request Checklist
masterbranchFixes #8538tests/**.test.ts)docs/docs/**.md)Fixes #8538