5 releases
0.2.9 | Aug 17, 2023 |
---|---|
0.2.8 | Jul 5, 2023 |
0.2.7 | Jul 3, 2023 |
0.2.6 | Jun 18, 2023 |
0.2.5 | Jun 18, 2023 |
#36 in #postgre-sql
129 downloads per month
Used in 10 crates
(via xxai-tokio-postgres)
135KB
3K
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
~2.6–10MB
~115K SLoC