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
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
Hello @vr7bd. You can follow this guide to do upsert
https://orm.drizzle.team/learn/guides/upsert
In your case should be
https://orm.drizzle.team/learn/guides/upsert
In your case should be
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.