Open dinwwwh opened 9 months ago
In @neondatabase/serverless handle transactions like this
@neondatabase/serverless
import { neon } from '@neondatabase/serverless'; const sql = neon(process.env.DATABASE_URL); const showLatestN = 10; const [posts, tags] = await sql.transaction([ sql`SELECT * FROM posts ORDER BY posted_at DESC LIMIT ${showLatestN}`, sql`SELECT * FROM tags`, ]);
Currently, Drizzle does not support transactions on neon adapters. However, if Drizzle supports batch on neon, it can bridge this gap.
batch
Postgres.js also implements a very similar API
Describe what you want
In
@neondatabase/serverless
handle transactions like thisCurrently, Drizzle does not support transactions on neon adapters. However, if Drizzle supports
batch
on neon, it can bridge this gap.