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

#1707 in Database interfaces

Download history 15919/week @ 2024-09-20 14033/week @ 2024-09-27 15358/week @ 2024-10-04 18366/week @ 2024-10-11 16054/week @ 2024-10-18 20330/week @ 2024-10-25 20909/week @ 2024-11-01 19418/week @ 2024-11-08 23738/week @ 2024-11-15 22618/week @ 2024-11-22 20510/week @ 2024-11-29 21284/week @ 2024-12-06 23188/week @ 2024-12-13 12285/week @ 2024-12-20 11711/week @ 2024-12-27 15077/week @ 2025-01-03

65,713 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
~264K SLoC