Support SQLITE's ON CONFLICT
clause
#510
Labels
api
Related to library's API
enhancement
New feature or request
sqlite
Related to sqlite
wontfix
This will not be worked on
Sqlite supports a non-standard
ON CONFLICT
clause (https://www.sqlite.org/lang_conflict.html) that determines how inserts/updates/create tables work, taking into account the entire row. Notably, this is distinct from sqlite's implementation ofON CONFLICT
for use in itsupsert
clause - https://www.sqlite.org/lang_UPSERT.html.An example usecase of this feature is a simplified upsert, that just replaces the underlying with the new row if there's a primary key or unique constraint violation of any sort, instead of having to declare every conflict resolution separate from the main insert body:
(Note the use of
OR REPLACE
instead ofON CONFLICT REPLACE
, which is part of the syntax to be less verbose in INSERT/UPDATE statements)The text was updated successfully, but these errors were encountered: