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 46818/week @ 2024-09-01 47356/week @ 2024-09-08 39961/week @ 2024-09-15 49146/week @ 2024-09-22 54429/week @ 2024-09-29 41161/week @ 2024-10-06 50693/week @ 2024-10-13 47752/week @ 2024-10-20 50231/week @ 2024-10-27 44731/week @ 2024-11-03 65401/week @ 2024-11-10 65924/week @ 2024-11-17 38190/week @ 2024-11-24 63884/week @ 2024-12-01 65497/week @ 2024-12-08 50184/week @ 2024-12-15

223,025 downloads per month
Used in 46 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