Skip to content

feat(postgres, sqlite): add conflictWhere option to Model.bulkCreate (v6) - #15788

Merged
WikiRik merged 1 commit into
v6from
wb-backport-bulkInsert-conflict-where
Mar 24, 2023
Merged

WikiRik merged 1 commit into
v6from
wb-backport-bulkInsert-conflict-where

Conversation

@wbourne0

Copy link
Copy Markdown
Member

Adds a conflictWhere option to Model.bulkCreate in postgres & sqlite which controls the clause in the ON CONFLICT part of the query. Backport of #13420.

@wbourne0 wbourne0 added dialect: sqlite For issues and PRs. Things that involve SQLite (and do not involve all dialects). dialect: postgres For issues and PRs. Things that involve PostgreSQL (and do not involve all dialects). labels Mar 14, 2023
@wbourne0 wbourne0 self-assigned this Mar 14, 2023
@wbourne0
wbourne0 force-pushed the wb-backport-bulkInsert-conflict-where branch from 2054bfe to 552e988 Compare March 14, 2023 23:08
@wbourne0
wbourne0 requested review from WikiRik and ephys and removed request for ephys March 16, 2023 15:42
@WikiRik

WikiRik commented Mar 22, 2023

Copy link
Copy Markdown
Member

Can you rebase this PR so it's merging into v6?

@wbourne0
wbourne0 force-pushed the wb-backport-bulkInsert-conflict-attributes branch from c53eec9 to 9464217 Compare March 22, 2023 20:46
@wbourne0

Copy link
Copy Markdown
Member Author

Can you rebase this PR so it's merging into v6?

I set the base of this to the previous branch since this has some of those changes and it's easier to review this way. It was also sequenced like this for #13420, I just couldn't set the pr base to the other branch since the branch was on a fork of this repo.

@wbourne0
wbourne0 force-pushed the wb-backport-bulkInsert-conflict-attributes branch from 9464217 to 02fbc26 Compare March 22, 2023 20:52
@wbourne0
wbourne0 force-pushed the wb-backport-bulkInsert-conflict-where branch from 552e988 to 6689b7e Compare March 22, 2023 20:53
Base automatically changed from wb-backport-bulkInsert-conflict-attributes to v6 March 23, 2023 07:59
@WikiRik

WikiRik commented Mar 23, 2023

Copy link
Copy Markdown
Member

Ah yes, I've merged the other one. Once we have merged this I will let the CI finish and release a new v6 version

Adds a conflictWhere option to Model.bulkCreate in postgres & sqlite which controls the clause in the `ON CONFLICT` part of the query.  Backport of #13420.
@wbourne0
wbourne0 force-pushed the wb-backport-bulkInsert-conflict-where branch from 6689b7e to 9cae05c Compare March 24, 2023 17:41
@WikiRik WikiRik added the v6 label Mar 24, 2023
@WikiRik
WikiRik merged commit 295c297 into v6 Mar 24, 2023
@WikiRik
WikiRik deleted the wb-backport-bulkInsert-conflict-where branch March 24, 2023 18:08
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dialect: postgres For issues and PRs. Things that involve PostgreSQL (and do not involve all dialects). dialect: sqlite For issues and PRs. Things that involve SQLite (and do not involve all dialects). released v6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants