23 releases
0.6.6 | Aug 20, 2023 |
---|---|
0.6.5 | Mar 27, 2023 |
0.6.4 | Apr 30, 2022 |
0.6.3 | Dec 11, 2021 |
0.1.1 | Nov 22, 2016 |
#200 in Database interfaces
382,270 downloads per month
Used in 462 crates
(22 directly)
94KB
2.5K
SLoC
Rust-Postgres
PostgreSQL support for Rust.
postgres 
A native, synchronous PostgreSQL client.
tokio-postgres 
A native, asynchronous PostgreSQL client.
postgres-types 
Conversions between Rust and Postgres types.
postgres-native-tls 
TLS support for postgres and tokio-postgres via native-tls.
postgres-openssl 
TLS support for postgres and tokio-postgres via openssl.
Running test suite
The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:
- Install
docker
anddocker-compose
.- On ubuntu:
sudo apt install docker.io docker-compose
.
- On ubuntu:
- Make sure your user has permissions for docker.
- On ubuntu:
sudo usermod -aG docker $USER
- On ubuntu:
- Change to top-level directory of
rust-postgres
repo. - Run
docker-compose up -d
. - Run
cargo test
. - Run
docker-compose stop
.
Dependencies
~4MB
~159K SLoC