32 releases

0.7.12 Sep 16, 2024
0.7.11 Jul 22, 2024
0.7.10 Aug 25, 2023
0.7.8 Mar 27, 2023
0.1.0 Dec 26, 2016

#22 in Database interfaces

Download history 146900/week @ 2024-09-20 157457/week @ 2024-09-27 136542/week @ 2024-10-04 154249/week @ 2024-10-11 164850/week @ 2024-10-18 157703/week @ 2024-10-25 155125/week @ 2024-11-01 166804/week @ 2024-11-08 184596/week @ 2024-11-15 146362/week @ 2024-11-22 154979/week @ 2024-11-29 173764/week @ 2024-12-06 165540/week @ 2024-12-13 67693/week @ 2024-12-20 62972/week @ 2024-12-27 107447/week @ 2025-01-03

435,604 downloads per month
Used in 552 crates (243 directly)

MIT/Apache

510KB
12K SLoC

Rust-Postgres

PostgreSQL support for Rust.

postgres Latest Version

Documentation

A native, synchronous PostgreSQL client.

tokio-postgres Latest Version

Documentation

A native, asynchronous PostgreSQL client.

postgres-types Latest Version

Documentation

Conversions between Rust and Postgres types.

postgres-native-tls Latest Version

Documentation

TLS support for postgres and tokio-postgres via native-tls.

postgres-openssl Latest Version

Documentation

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:

  1. Install docker and docker-compose.
    1. On ubuntu: sudo apt install docker.io docker-compose.
  2. Make sure your user has permissions for docker.
    1. On ubuntu: sudo usermod -aG docker $USER
  3. Change to top-level directory of rust-postgres repo.
  4. Run docker-compose up -d.
  5. Run cargo test.
  6. Run docker-compose stop.

Dependencies

~6–18MB
~254K SLoC