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

#323 in #native

Download history 33756/week @ 2024-07-02 41395/week @ 2024-07-09 37103/week @ 2024-07-16 36860/week @ 2024-07-23 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 45959/week @ 2024-10-15

196,543 downloads per month
Used in 44 crates (2 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

~265–720KB
~17K SLoC