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

#400 in #native

Download history 65924/week @ 2024-11-17 38190/week @ 2024-11-24 63884/week @ 2024-12-01 65497/week @ 2024-12-08 52208/week @ 2024-12-15 13033/week @ 2024-12-22 17701/week @ 2024-12-29 52831/week @ 2025-01-05 52011/week @ 2025-01-12 40414/week @ 2025-01-19 41020/week @ 2025-01-26 54792/week @ 2025-02-02 47705/week @ 2025-02-09 38920/week @ 2025-02-16 56205/week @ 2025-02-23 50412/week @ 2025-03-02

196,371 downloads per month
Used in 47 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

~215–650KB
~15K SLoC