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

#1646 in Database interfaces

Download history 11921/week @ 2024-01-12 12069/week @ 2024-01-19 12285/week @ 2024-01-26 12278/week @ 2024-02-02 13429/week @ 2024-02-09 11759/week @ 2024-02-16 10716/week @ 2024-02-23 11536/week @ 2024-03-01 11165/week @ 2024-03-08 11268/week @ 2024-03-15 14638/week @ 2024-03-22 16583/week @ 2024-03-29 17066/week @ 2024-04-05 17141/week @ 2024-04-12 17677/week @ 2024-04-19 14257/week @ 2024-04-26

68,766 downloads per month
Used in 16 crates (14 directly)

MIT/Apache

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

~9–19MB
~348K SLoC