Lacerda
DTDrizzle Team
•Created by Lacerda on 10/1/2023 in #help
error: there is no unique or exclusion constraint matching the ON CONFLICT specification
Hello, I'm facing a problem with the insert on the table when I use the
onConflictDoUpdate
with targets that are not the primary key.
Check the table below:
And I want to upsert the product with:
Note: The product
is a object with a random id
that will not be present in DB, so I can't compare the id's, otherwise I'll end up with duplicate products in the table.6 replies