I want to run multiple test processes against one database. Each process needs to see the database as if it were the only process. Nested transactions (putting the whole test in a transaction) would do it, but Postgres can't do that. Is there another way?
How is the app executing its queries? Are you just using raw SQL? No abstraction layer that can help? (e.g. something like https://github.com/diesel-rs/diesel/blob/master/diesel/src/connection/transaction_manager.rs#L86-L126 …)
-
-
AR should already do nested transaction emulation as long as you do requires_new: true
- 1 more reply
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.