Is there a way to return rows which were inserted vs updated?
joshuakoh1 opened this issue · 1 comments
joshuakoh1 commented
Ideally the row + bool representing created/updated like update_or_create but any form of distinction would be helpful further processing
Photonios commented
No, there is no good way to do this. PostgreSQL simply doesn't return this information. Version 1.x of this package tried some hacks to do this and it caused all sorts of problems and it was removed.
If you really need this, don't use this package and use some raw SQL that caters to your use case.