#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

#2635 in Database interfaces

Download history 792/week @ 2023-12-11 978/week @ 2023-12-18 415/week @ 2023-12-25 445/week @ 2024-01-01 907/week @ 2024-01-08 791/week @ 2024-01-15 709/week @ 2024-01-22 655/week @ 2024-01-29 675/week @ 2024-02-05 748/week @ 2024-02-12 746/week @ 2024-02-19 730/week @ 2024-02-26 740/week @ 2024-03-04 676/week @ 2024-03-11 785/week @ 2024-03-18 673/week @ 2024-03-25

2,926 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

~4.5–6MB
~191K SLoC