94 releases

0.19.0 Dec 25, 2020
0.18.1 Oct 20, 2020
0.17.5 Jul 19, 2020
0.17.2 Mar 6, 2020
0.1.2 Nov 28, 2014

#225 in Database interfaces

Download history 6285/week @ 2020-10-02 7604/week @ 2020-10-09 7466/week @ 2020-10-16 7018/week @ 2020-10-23 7312/week @ 2020-10-30 6580/week @ 2020-11-06 6064/week @ 2020-11-13 6260/week @ 2020-11-20 6810/week @ 2020-11-27 6381/week @ 2020-12-04 6776/week @ 2020-12-11 5704/week @ 2020-12-18 3715/week @ 2020-12-25 6754/week @ 2021-01-01 8121/week @ 2021-01-08 8033/week @ 2021-01-15

29,006 downloads per month
Used in 145 crates (115 directly)

MIT/Apache

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

~7MB
~149K SLoC