33 releases
0.7.13 | Feb 2, 2025 |
---|---|
0.7.12 | Sep 16, 2024 |
0.7.11 | Jul 22, 2024 |
0.7.10 | Aug 25, 2023 |
0.1.0 | Dec 26, 2016 |
#661 in Database interfaces
1,226,126 downloads per month
Used in 578 crates
(256 directly)
515KB
12K
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
~7–20MB
~277K SLoC