16 releases

0.4.6 Sep 16, 2024
0.4.5 Aug 20, 2023
0.4.4 Mar 27, 2023
0.4.3 Sep 7, 2022
0.2.2 Nov 19, 2016

#363 in #native

Download history 40989/week @ 2024-09-11 47121/week @ 2024-09-18 51113/week @ 2024-09-25 47166/week @ 2024-10-02 43170/week @ 2024-10-09 52453/week @ 2024-10-16 43886/week @ 2024-10-23 55244/week @ 2024-10-30 39533/week @ 2024-11-06 77214/week @ 2024-11-13 57502/week @ 2024-11-20 44848/week @ 2024-11-27 59432/week @ 2024-12-04 69877/week @ 2024-12-11 32332/week @ 2024-12-18 10263/week @ 2024-12-25

187,881 downloads per month
Used in 45 crates (3 directly)

MIT/Apache

33KB
807 lines

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.

lib.rs:

An internal crate for postgres-types.

Dependencies

~230–670KB
~16K SLoC