upsert with excluded using column name
I'm trying to do a an upsert like so
When I try to do this, I'm getting error
PostgresError: syntax error at or near "$265"
. If I do , it works. But I would like to do so using the .name
property as it will be easier to catch if there's an issue. How do I do it?Solution:Jump to solution
Hello @vr7bd. You can follow this guide to do upsert
https://orm.drizzle.team/learn/guides/upsert
In your case should be
...
Drizzle ORM - Upsert Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
2 Replies
Solution
Hello @vr7bd. You can follow this guide to do upsert
https://orm.drizzle.team/learn/guides/upsert
In your case should be
Drizzle ORM - Upsert Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Yup working thanks!