sqlx-db-ssk-tester
This a tool to test sqlx with postgres,It only support tokio runtime at this moment.
study by tyr Chen
How to use it
You should first create a TestDb
data structure in your tests. It will automatically create a database and a connection pool for you. You could then get the connection string or connection pool from it to use in your own code. When TestDb
gets dropped, it will automatically drop the database.
Have fun with this crate!
License
This project is distributed under the terms of MIT.
See LICENSE for details.
Copyright 2021 ssk