7 releases (4 breaking)

0.5.0 Dec 25, 2020
0.4.0 Oct 17, 2020
0.3.0 Dec 23, 2019
0.3.0-alpha.2 Nov 28, 2019
0.1.0 Nov 12, 2018

#1888 in Database interfaces

Download history 10939/week @ 2024-03-03 11707/week @ 2024-03-10 11272/week @ 2024-03-17 15193/week @ 2024-03-24 16669/week @ 2024-03-31 17306/week @ 2024-04-07 17270/week @ 2024-04-14 17692/week @ 2024-04-21 16257/week @ 2024-04-28 15285/week @ 2024-05-05 14586/week @ 2024-05-12 14483/week @ 2024-05-19 12320/week @ 2024-05-26 13595/week @ 2024-06-02 12527/week @ 2024-06-09 12183/week @ 2024-06-16

51,099 downloads per month
Used in 16 crates (14 directly)

MIT/Apache

285KB
6.5K SLoC

Rust-Postgres

CircleCI

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

~8–21MB
~282K SLoC