30 releases

0.7.10 Aug 25, 2023
0.7.8 Mar 27, 2023
0.7.7 Aug 21, 2022
0.7.6 Apr 30, 2022
0.1.0 Dec 26, 2016

#375 in Database interfaces

Download history 92657/week @ 2024-01-02 102033/week @ 2024-01-09 109722/week @ 2024-01-16 111409/week @ 2024-01-23 106176/week @ 2024-01-30 101270/week @ 2024-02-06 105248/week @ 2024-02-13 99015/week @ 2024-02-20 110515/week @ 2024-02-27 109213/week @ 2024-03-05 113045/week @ 2024-03-12 105446/week @ 2024-03-19 111065/week @ 2024-03-26 112090/week @ 2024-04-02 104091/week @ 2024-04-09 81429/week @ 2024-04-16

427,386 downloads per month
Used in 431 crates (186 directly)

MIT/Apache

495KB
11K 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

~7–21MB
~341K SLoC