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

#1876 in Database interfaces

Download history 11585/week @ 2024-08-05 14131/week @ 2024-08-12 12450/week @ 2024-08-19 13728/week @ 2024-08-26 13351/week @ 2024-09-02 11842/week @ 2024-09-09 12199/week @ 2024-09-16 15642/week @ 2024-09-23 14133/week @ 2024-09-30 15888/week @ 2024-10-07 18695/week @ 2024-10-14 18110/week @ 2024-10-21 18975/week @ 2024-10-28 20807/week @ 2024-11-04 19811/week @ 2024-11-11 24690/week @ 2024-11-18

85,797 downloads per month
Used in 20 crates (16 directly)

MIT/Apache

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

~8–18MB
~263K SLoC