104 releases
0.19.10 | Feb 2, 2025 |
---|---|
0.19.9 | Sep 16, 2024 |
0.19.8 | Jul 22, 2024 |
0.19.7 | Aug 25, 2023 |
0.1.2 | Nov 28, 2014 |
#15 in Database interfaces
194,413 downloads per month
Used in 324 crates
(254 directly)
390KB
8K
SLoC
Rust-Postgres
PostgreSQL support for Rust.
postgres ![Latest Version](https://img.shields.io/crates/v/postgres.svg)
A native, synchronous PostgreSQL client.
tokio-postgres ![Latest Version](https://img.shields.io/crates/v/tokio-postgres.svg)
A native, asynchronous PostgreSQL client.
postgres-types ![Latest Version](https://img.shields.io/crates/v/postgres-types.svg)
Conversions between Rust and Postgres types.
postgres-native-tls ![Latest Version](https://img.shields.io/crates/v/postgres-native-tls.svg)
TLS support for postgres and tokio-postgres via native-tls.
postgres-openssl ![Latest Version](https://img.shields.io/crates/v/postgres-openssl.svg)
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
~8–19MB
~262K SLoC