Macro test_db
Source macro_rules! test_db {
() => { ... };
($migrator:ty) => { ... };
}
Expand description
Helper macro to create a test database for each test
§Example
ⓘuse tideway::test_db;
#[tokio::test]
async fn my_test() {
let db = test_db!();
}