njord-rs / njord

A versatile, feature-rich Rust ORM ⛵
https://njord.rs
BSD 3-Clause "New" or "Revised" License
409 stars 21 forks source link

Postgres support #148

Closed chaseWillden closed 1 month ago

chaseWillden commented 1 month ago

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 use cargo run --bin postgres then it'll run the postgres version