#postgresql #native #postgres-tokio

postgres-shared

Internal crate used by postgres and postgres-tokio

8 releases

Uses old Rust 2015

0.4.2 Aug 23, 2018
0.4.1 Feb 12, 2018
0.4.0 Jul 23, 2017
0.3.0 Jun 11, 2017
0.1.0 Dec 26, 2016

#2761 in Database interfaces

Download history 666/week @ 2024-03-13 731/week @ 2024-03-20 639/week @ 2024-03-27 731/week @ 2024-04-03 621/week @ 2024-04-10 780/week @ 2024-04-17 765/week @ 2024-04-24 670/week @ 2024-05-01 760/week @ 2024-05-08 940/week @ 2024-05-15 794/week @ 2024-05-22 829/week @ 2024-05-29 826/week @ 2024-06-05 695/week @ 2024-06-12 637/week @ 2024-06-19 1008/week @ 2024-06-26

3,315 downloads per month
Used in 58 crates (2 directly)

MIT license

270KB
6.5K SLoC

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.

Dependencies

~3.5–5MB
~117K SLoC