15 releases

0.4.5 Aug 20, 2023
0.4.4 Mar 27, 2023
0.4.3 Sep 7, 2022
0.4.2 Apr 30, 2022
0.2.2 Nov 19, 2016

#354 in #native

Download history 21698/week @ 2023-12-22 21537/week @ 2023-12-29 29694/week @ 2024-01-05 27248/week @ 2024-01-12 37249/week @ 2024-01-19 34856/week @ 2024-01-26 33199/week @ 2024-02-02 33472/week @ 2024-02-09 25886/week @ 2024-02-16 36170/week @ 2024-02-23 34042/week @ 2024-03-01 36251/week @ 2024-03-08 39034/week @ 2024-03-15 34864/week @ 2024-03-22 47561/week @ 2024-03-29 27529/week @ 2024-04-05

154,483 downloads per month
Used in 33 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

~325–770KB
~18K SLoC