DrizzleError: Rollback is being rethrown unexpectedly
No matter which error I throw for the rollback - it doesn't work as indented because it bleeds outside the transaction as postgres-js is rethrowing it.
Such simple code results in my top-level error handler being triggered with
DrizzleError: Rollback
Relevant postgres-js line: https://github.com/porsager/postgres/blob/master/src/index.js#L271GitHub
postgres/src/index.js at master · porsager/postgres
Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare - porsager/postgres
H
hkg•8d ago
This is what I'm getting from my top-level handler.
Hm, wrapping transaction inside of try/catch makes it work, but its dirty
Should I migrate this to github issues?
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.2KMembers
View on DiscordWant results from more Discord servers?
More PostsId being required in types when using insert and valuesHello! I' been following the tutorial and I'm having a issue with the following function:
```js
expoFailed push to planetscaleEvery time I try to push my schema to Planetscale, I get the following error:
```
if (unsquashSelect parent rows where child existsI want to use a relational query to select all users and their posts where users have at least one pCreating a View with Turso/Sqlite```export const jobsView = sqliteView("jobsView").as((qb) =>
qb
.select({
id: job.id,
How to update "updated_at" column automaticly when related row is updated?Hello.
I'm using PostgreSQL as a dbms. So driver is pg. I want to update the "updated_at" column wwrap migrations in transactiondoes drizzle wrap migrations in transaction?Error with Nested TransactionsI'm experiencing an issue with nested transactions on neon serverless 0.9.1, drizzle-orm 0.30.9, andSupabase branching w/ Drizzle?Does anyone know if it is possible to get Supabase branching working with Drizzle migrations? (https