This is a tool to test sqlx with postgres and tokio runtime only.
First, create a TestDb
struct instance in tests. It will automatically create database and a connection pool.
Then get the connection string or connection pool from it to use in codes.
Finally, when TestDb
gets dropped, it will automatically drop the database.
```rust
async fn testdbshouldwork() { let tdb = TestPg::default(); let pool = tdb.getpool().await; // do something with pool }
```
This project is distributed under the terms of MIT.
See LICENSE for details.
Copyright 2023 lshoo