On various DBMS it is supported to write complex expressions to be used in the insert/update ON CONFLICT clause.
The work on #31685 is great, but the lack of complex conflict handling is a big disadvantage when interacting with a database which offers this feature
It would be great to write in the ORM: “on conflict increase the value of column X by Y” or “on conflict concat the previous value with the new one”.
It will also be very good to allow using the WHERE
clause in the ON CONFLICT
statement to allow a more fine handling of conflicts on the database side.
Is this feature on roadmap or is there a way to achieve this without using a third party app.