Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSQLite: on_conflict().do_udpate() support #1854
Comments
This comment has been minimized.
|
Thank you for the feature request. We're currently in the process of a cleanup of the issue tracker, and aren't currently accepting feature requests (there will be an official policy written soon, but the TL;DR is that open issues should reflect something that is a bug or on our immediate roadmap). We're happy to discuss feature requests, but the place to do so is discourse.diesel.rs, not the issue tracker. |
sgrif
closed this
Sep 18, 2018
This comment has been minimized.
|
Understood. |
This comment has been minimized.
Thanks for your patience. |
This comment has been minimized.
|
Guess I missed that. cough |
This comment has been minimized.
|
I'm actually going to re-open this, since I think implementing it will be fairly easy and would be a nice addition for 1.4 |
sgrif
reopened this
Sep 18, 2018
This comment has been minimized.
h-michael
commented
Oct 13, 2018
|
@sgrif |
This comment has been minimized.
|
Go for it |
This comment has been minimized.
h-michael
commented
Oct 13, 2018
|
@sgrif |
This comment has been minimized.
|
There is already an implementation of What needs to be done:
Feel free to open a PR early in that progress to get feedback there. Also ask in our gitter channel if you get stuck somewhere. |
This comment has been minimized.
h-michael
commented
Oct 13, 2018
|
@weiznich |
theduke commentedSep 18, 2018
SQLite supports full UPSERT functionality equivalent to Postgres now.
Like:
INSERT INTO phonebook(name,phonenumber) VALUES('Alice','704-555-1212') ON CONFLICT(name) DO UPDATE SET phonenumber=excluded.phonenumber;See: https://www.sqlite.org/lang_UPSERT.html
Would be really great to support this, the same way it works in PG: