I do have to admit, I couldn't figure out out to mock out the postgres connection for the tests...
Also there's definitely parts that will need to be cleaned up too.
Lastly, there is a docker-compose.yml file, if you run docker-compose up -d then you can spin up the postgres server. Then you can use cargo run --bin postgres then it'll run the postgres version
Add Postgres support to all the operations.
I do have to admit, I couldn't figure out out to mock out the postgres connection for the tests...
Also there's definitely parts that will need to be cleaned up too.
Lastly, there is a docker-compose.yml file, if you run
docker-compose up -d
then you can spin up the postgres server. Then you can usecargo run --bin postgres
then it'll run the postgres version