Does throwing a regular javascript error inside a transaction, roll back automatically?

Curious if I need to actually call tx.rollback()? Or if we reach a regular error, or lets say a Postgres error occurs at some step, will everything be automatically rolled back? Or do we have to always try catch and rollback in the catch/finally block?
1 Reply
Angelelz
Angelelz16mo ago
Throwing in a transaction will rollback See related discussion in #general https://discordapp.com/channels/1043890932593987624/1043890932593987627/1141774435142078595
Want results from more Discord servers?
Add your server