withpostgresready makes it easy to write tests that relies on a postgres database being ready to accept connections. It does this by starting a Docker container with postgres, polling the database until it is ready, and then executing the block.
To get a connection url with the default configuration:
```rust use withpostgresready::*;
fn itcanusedefaults() { withpostgres_ready(|url| async move { // Connect to the database using the url. }); } ```
To get more control, use the Runner
builder:
```rust use withpostgresready::*;
fn itcanusecustomconnectiontimeout() { Runner::new().connectiontimeout(Duration::from_secs(5)).run(|url| async move { // Connect to the database using the url. }); } ```