15 releases

0.2.8 Sep 16, 2024
0.2.7 Jul 22, 2024
0.2.6 Aug 20, 2023
0.2.5 Mar 27, 2023
0.1.0-alpha.2 Nov 28, 2019

#1283 in Database interfaces

Download history 142914/week @ 2024-09-19 164790/week @ 2024-09-26 142011/week @ 2024-10-03 161119/week @ 2024-10-10 175985/week @ 2024-10-17 166083/week @ 2024-10-24 164761/week @ 2024-10-31 163590/week @ 2024-11-07 201014/week @ 2024-11-14 162851/week @ 2024-11-21 154340/week @ 2024-11-28 173397/week @ 2024-12-05 184579/week @ 2024-12-12 93201/week @ 2024-12-19 61838/week @ 2024-12-26 103425/week @ 2025-01-02

478,644 downloads per month
Used in 621 crates (114 directly)

MIT/Apache

230KB
5.5K 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

~3–10MB
~122K SLoC