4 Replies
foreign-sapphire•13mo ago
There's a transaction API for the HTTP version fo the driver
https://github.com/neondatabase/serverless?tab=readme-ov-file#transaction
GitHub
GitHub - neondatabase/serverless: Connect to Neon PostgreSQL from s...
Connect to Neon PostgreSQL from serverless/worker/edge functions - neondatabase/serverless
fascinating-indigo•13mo ago
I don't think that's what they are asking for 😄
It's more of a javascript question really, how you could conditionally do
or
foreign-sapphire•13mo ago
oh TIL about this Drizzle API https://orm.drizzle.team/docs/batch-api
Drizzle ORM - Batch
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
foreign-sapphire•13mo ago
I tried it out but I get a type error
