Open
Description
Currently with on_conflict(...).insert(...)
(as well as insert_and_get
and bulk_insert
) there is no way to know which rows were inserted and which have been updated in-place (unlike Django's update_or_create
which returns a tuple of obj, created
).
However, Postgres provides such trick with RETURNING *, (xmax = 0)
(see https://stackoverflow.com/a/47001830/189806).
It would be great if that was supported natively by the library.