11 releases

new 0.4.1 Nov 23, 2021
0.4.0 Dec 23, 2019
0.4.0-alpha.1 Oct 15, 2019
0.3.3 Apr 4, 2018
0.2.2 Nov 19, 2016
Download history 3656/week @ 2021-08-10 3585/week @ 2021-08-17 4330/week @ 2021-08-24 3134/week @ 2021-08-31 4369/week @ 2021-09-07 4962/week @ 2021-09-14 4370/week @ 2021-09-21 4298/week @ 2021-09-28 3557/week @ 2021-10-05 4596/week @ 2021-10-12 5533/week @ 2021-10-19 4992/week @ 2021-10-26 5156/week @ 2021-11-02 5698/week @ 2021-11-09 4357/week @ 2021-11-16 3574/week @ 2021-11-23

19,573 downloads per month
Used in 5 crates (via postgres-types)

MIT/Apache

17KB
461 lines

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

~290–710KB
~18K SLoC

d~a