This is an example repo how to perform rust sqlx tests. I was unable to find many example and thought this may be useful to other folks out there.
This example uses fixtures to support testing. See the tests directory for the details.
# Builds the rust code
docker-compose build sqlx_test
# Runs the migrations
docker-compose run sqlx_migrate
# Compiles and runs the tests
docker-compose run sqlx_test