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?
-
-
Yeah, but the app already does transactions in the usual way, so I don't think I can do that without modifying the app?
-
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 …)
- 3 more replies
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.