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

#357 in #native

Download history 35907/week @ 2024-07-30 42638/week @ 2024-08-06 43519/week @ 2024-08-13 43530/week @ 2024-08-20 49072/week @ 2024-08-27 47878/week @ 2024-09-03 44755/week @ 2024-09-10 43490/week @ 2024-09-17 50770/week @ 2024-09-24 50946/week @ 2024-10-01 39843/week @ 2024-10-08 53332/week @ 2024-10-15 45687/week @ 2024-10-22 55452/week @ 2024-10-29 39276/week @ 2024-11-05 70497/week @ 2024-11-12

219,148 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

~240–680KB
~16K SLoC