21 releases

0.6.4 Apr 30, 2022
0.6.3 Dec 11, 2021
0.6.2 Sep 29, 2021
0.6.1 Apr 3, 2021
0.1.1 Nov 22, 2016
Download history 46187/week @ 2022-04-27 47287/week @ 2022-05-04 33909/week @ 2022-05-11 31534/week @ 2022-05-18 30342/week @ 2022-05-25 33796/week @ 2022-06-01 36352/week @ 2022-06-08 33612/week @ 2022-06-15 36741/week @ 2022-06-22 33714/week @ 2022-06-29 38768/week @ 2022-07-06 42552/week @ 2022-07-13 43857/week @ 2022-07-20 43619/week @ 2022-07-27 47950/week @ 2022-08-03 37309/week @ 2022-08-10

180,872 downloads per month
Used in 320 crates (13 directly)

MIT/Apache

92KB
2.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

~2.5MB
~74K SLoC