https://kotlinlang.org logo
#server
Title
# server
m

Mod

11/14/2023, 6:34 PM
Hello guys, I'm using ktor server and I followed the documentation about the database integration and exposed ORM, I have some operations between two tables and I want to open a parent transaction and inside it I want to open two child transactions and if one failed I want to rollback all the transactions in the parent transaction, how to do that?
t

Thiago Chaves Santos

11/14/2023, 8:12 PM
Hello, you tried use this?
transaction {
//Do cool stuff
}
m

Mod

11/14/2023, 8:18 PM
I found the problem I was doing nested transactions and that led to unexpected behaviour
1
2 Views