101 releases

0.19.7 Aug 25, 2023
0.19.5 Mar 27, 2023
0.19.4 Aug 21, 2022
0.19.3 Apr 30, 2022
0.1.2 Nov 28, 2014

#2 in #sql-database

Download history 40329/week @ 2023-12-12 32573/week @ 2023-12-19 23239/week @ 2023-12-26 37438/week @ 2024-01-02 43008/week @ 2024-01-09 45621/week @ 2024-01-16 44666/week @ 2024-01-23 44925/week @ 2024-01-30 38531/week @ 2024-02-06 42055/week @ 2024-02-13 42350/week @ 2024-02-20 47683/week @ 2024-02-27 45421/week @ 2024-03-05 46803/week @ 2024-03-12 47268/week @ 2024-03-19 29442/week @ 2024-03-26

176,979 downloads per month
Used in 286 crates (223 directly)

MIT/Apache

370KB
7.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

~8–20MB
~334K SLoC