95 releases

0.19.1 Apr 3, 2021
0.19.0 Dec 25, 2020
0.18.1 Oct 20, 2020
0.17.5 Jul 19, 2020
0.1.2 Nov 28, 2014

#439 in Database interfaces

Download history 4802/week @ 2020-12-20 3953/week @ 2020-12-27 7851/week @ 2021-01-03 8043/week @ 2021-01-10 8679/week @ 2021-01-17 9390/week @ 2021-01-24 10592/week @ 2021-01-31 9927/week @ 2021-02-07 9975/week @ 2021-02-14 9523/week @ 2021-02-21 10906/week @ 2021-02-28 9158/week @ 2021-03-07 9212/week @ 2021-03-14 9425/week @ 2021-03-21 8788/week @ 2021-03-28 9004/week @ 2021-04-04

40,292 downloads per month
Used in 153 crates (121 directly)

MIT/Apache

325KB
6.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

~6.5MB
~147K SLoC