Call Custom Function onConflict

How to handle custom function or update other table when there is a conflict? so we don't need to handle like this
No description
2 Replies
rphlmr ⚡
rphlmr ⚡6mo ago
If it is not possible in pure sql, it will not be possible with Drizzle. Maybe you can try https://orm.drizzle.team/docs/insert#upserts-and-conflicts and doNothing then check the returned value. It should be empty, so you know it doesn’t work because of a conflict
Drizzle ORM - Insert
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Want results from more Discord servers?
Add your server