hi there
i recentely heared about this orm by my friends and they are very interested.
can i ask you how to implement unit of work by drizzel?
i mean doing update multiple repositories in order failling one of them roll back all
class UOW {
userRepo:UserRepository
orderRepo:OrderRepsitory
startTransaction(){}
commitTransaction(){}
rollback()
}
class Test {
main(){
this.uow.startTransaction(){
const a = await this.uow.UserRepo.create()
const d = await this.uow.orderRepo.delete()
this.uow.commitTransaction()
// whetever the two will executed or the tow will rollbacked
}
}
i saw you are handling transactions as prisma is doing, by passing a function but i don't perfer this way.
i want to ask do you have any plane to add to support this kind of feature.
Describe what you want
hi there i recentely heared about this orm by my friends and they are very interested. can i ask you how to implement unit of work by drizzel? i mean doing update multiple repositories in order failling one of them roll back all
i saw you are handling transactions as prisma is doing, by passing a function but i don't perfer this way. i want to ask do you have any plane to add to support this kind of feature.
thanks