Skip to content
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

Support upsert functionality #58

Open
dzikoysk opened this issue Aug 12, 2021 · 2 comments
Open

Support upsert functionality #58

dzikoysk opened this issue Aug 12, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dzikoysk
Copy link

At this moment I don't think it is possible to use upsert functionality using a DSL. It's quite useful as most of the popular SQL implementations somehow support this:

MySQL, MariaDB, H2 (with MySQL dialect): ON DUPLICATE KEY UPDATE ...
PostgreSQL, SQLite: ON CONFLICT [ON CONSTRAINT] ...

@pull-vert
Copy link
Contributor

Interesting, I will give it a try !

@dzikoysk
Copy link
Author

Not sure if it might be helpful, but it's something I had to deal with in Exposed as it's still not supported oficially. Here's my implementation:

You may see how to deal with it in various DBs implementations and how it is supported these days 🤔

@pull-vert pull-vert added the enhancement New feature or request label Jan 31, 2022
@pull-vert pull-vert added the help wanted Extra attention is needed label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants