Transaction rolling back without error
Hello all,
I'm trying to use Drizzle together with Supabase and SvelteKit to have transaction support. However, I've come across an issue which I'm having trouble understanding.
The following query is successful on it's own (the value of the variables is extracted from a form data):
However, when I use inside a transaction, the transaction does NOT fail, but it does NOT write to the database either:
3 Replies
Seems like a bug.
Two things, can you pass
{logger: true}
to drizzle to see what's being sent?
The other, can you asign that to a variable to log it a see what's coming back?
And then
Hey, thank you for your answer
I ended up stumbling upon the solution. Basically, needed to add 'prepare: false' to my drizzleClient
Interesting 🤔
Thanks for reporting back