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

#430 in Database interfaces

Download history 9241/week @ 2023-02-08 7482/week @ 2023-02-15 7601/week @ 2023-02-22 7653/week @ 2023-03-01 7985/week @ 2023-03-08 7522/week @ 2023-03-15 7804/week @ 2023-03-22 6843/week @ 2023-03-29 6001/week @ 2023-04-05 6613/week @ 2023-04-12 6749/week @ 2023-04-19 6499/week @ 2023-04-26 6241/week @ 2023-05-03 6767/week @ 2023-05-10 6651/week @ 2023-05-17 4632/week @ 2023-05-24

25,436 downloads per month
Used in 14 crates (13 directly)

MIT/Apache

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

~8–14MB
~271K SLoC