23 releases

0.6.6 Aug 20, 2023
0.6.5 Mar 27, 2023
0.6.4 Apr 30, 2022
0.6.3 Dec 11, 2021
0.1.1 Nov 22, 2016

#200 in Database interfaces

Download history 81164/week @ 2023-06-06 83237/week @ 2023-06-13 89271/week @ 2023-06-20 90424/week @ 2023-06-27 92736/week @ 2023-07-04 89314/week @ 2023-07-11 91896/week @ 2023-07-18 93507/week @ 2023-07-25 94682/week @ 2023-08-01 94416/week @ 2023-08-08 93967/week @ 2023-08-15 97198/week @ 2023-08-22 93384/week @ 2023-08-29 92730/week @ 2023-09-05 97339/week @ 2023-09-12 81908/week @ 2023-09-19

382,270 downloads per month
Used in 462 crates (22 directly)

MIT/Apache

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

~4MB
~159K SLoC