-
Notifications
You must be signed in to change notification settings - Fork 1.9k
insertBatch updateBatch upsertBatch deleteBatch from query #6689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kenjis
merged 40 commits into
codeigniter4:4.3
from
sclubricants:insertUpsertUpdateFromQuery
Dec 11, 2022
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
78a4fca
Add fromQuery() and fieldsFromQuery() methods
sclubricants ad9210c
Add fromQuery() logic to updateBatch()
sclubricants 00bb907
Add updateBatch test
sclubricants 8017493
Add fromQuery() logic to insertBatch()
sclubricants d22b0e7
Add InsertBatch() test
sclubricants cc7bf57
Add fromQuery() logic to upsertBatch()
sclubricants 4aac862
Add upsertBatch() test
sclubricants 5ef39cb
Fix CS
sclubricants cb5c33b
Add documentation and change log
sclubricants cd14f28
CS Fix
sclubricants d0a0b10
Change example to use fromQuery()
sclubricants dd7eaaa
Fix CS
sclubricants 0fd7e34
Add note to documentation
sclubricants 672366e
Fixes from review
sclubricants b3d932d
Refactor fromQuery()
sclubricants 66829a8
Added fromQuery() test
sclubricants 113e8be
Fix testMode()
sclubricants f29d253
Comment fieldsFromQuery()
sclubricants b5a2837
Add more comments
sclubricants 8335990
Remove type string from fromQuery()
sclubricants d8dbc91
CS Fixer
sclubricants 134aeb6
Change fieldsFromQuery() method
sclubricants fc4e890
Add $columns parameter
sclubricants 62055ae
Fix logic
sclubricants b9119a5
Add test for RawSql and manual columns
sclubricants a345821
Update documentation
sclubricants 1e3d73a
Change to getFieldNames()
sclubricants 3e5a8d6
CS Fixer
sclubricants a535ca5
Change fromQuery() to setQuery()
sclubricants 2f8d9dc
Throw exception if $query parameter is string
sclubricants e1855f6
Remove use of setAlias()
sclubricants 70d25ed
Rename setQuery() to setQueryAsData()
sclubricants 055c580
Add query to deleteBatch()
sclubricants bc02c21
Add delete from query documentation
sclubricants 5979c98
Update user_guide_src/source/changelogs/v4.3.0.rst
sclubricants 91c1a20
Update user_guide_src/source/database/query_builder.rst
sclubricants a586e4d
Remove query input from $set in *Batch() methods
sclubricants bb50984
Add notes for version added
sclubricants e3fd379
Clean up a few things
sclubricants 2154e87
Fix tests to not use query as set parameter
sclubricants File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.