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
Download history 9839/week @ 2021-09-28 3297/week @ 2021-10-05 3068/week @ 2021-10-12 3304/week @ 2021-10-19 3029/week @ 2021-10-26 2877/week @ 2021-11-02 2629/week @ 2021-11-09 3680/week @ 2021-11-16 2450/week @ 2021-11-23 3561/week @ 2021-11-30 3165/week @ 2021-12-07 3933/week @ 2021-12-14 1989/week @ 2021-12-21 2296/week @ 2021-12-28 3892/week @ 2022-01-04 3377/week @ 2022-01-11

12,156 downloads per month
Used in less than 6 crates

MIT/Apache

260KB
6K 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

~9MB
~187K SLoC

_