Implementing Transactions in `drizzle-orm` with `Effect` Services
Probably a dumb question, but I'm using
The thing is, I want to use transactions, but since I'm providing the
For context the
drizzle-orm with Effect and I've started implementing some services for each table, like this for example:The thing is, I want to use transactions, but since I'm providing the
DatabaseLive service I'm not sure how to make the service use the transaction instead of the db directly. Obviously I can just do something like this, but would prefer using the serviceFor context the
DatabaseLive is just this