Multiple onConflictDoUpdate's supported?
I'm using two
onConflictDoUpdate()
and seems only the last one is picked up when run. Are multiple onConflictDoUpdate
supported?
3 Replies
Drizzle ORM - Upsert Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
There's an example in here
You can't call it more than once, but you can use
excluded
to refer to rows that didn't get inserted due to a conflict.Super usefull thanks