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

#34 in Database interfaces

Download history 45972/week @ 2024-01-21 44596/week @ 2024-01-28 39353/week @ 2024-02-04 41534/week @ 2024-02-11 42367/week @ 2024-02-18 47486/week @ 2024-02-25 45374/week @ 2024-03-03 45298/week @ 2024-03-10 48349/week @ 2024-03-17 38166/week @ 2024-03-24 29677/week @ 2024-03-31 29152/week @ 2024-04-07 31106/week @ 2024-04-14 29843/week @ 2024-04-21 28592/week @ 2024-04-28 30097/week @ 2024-05-05

122,201 downloads per month
Used in 287 crates (224 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

~7–18MB
~321K SLoC