4 ms·
Just using a transaction that will be rolled back after each test case is exactly what diesel suggests. There is a separate function for this on diesels connect
by weiznich 4y ago
Just using a transaction that will be rolled back after each test case is exactly what diesel suggests. There is a separate function for this on diesels connection trait[1]
[1]: https://docs.diesel.rs/2.0.x/diesel/connection/trait.Connection.html#method.begin_test_transaction https://docs.diesel.rs/2.0.x/diesel/connection/trait.Connect...