#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

#305 in #native

Download history 765/week @ 2024-08-24 737/week @ 2024-08-31 737/week @ 2024-09-07 644/week @ 2024-09-14 739/week @ 2024-09-21 618/week @ 2024-09-28 449/week @ 2024-10-05 651/week @ 2024-10-12 516/week @ 2024-10-19 625/week @ 2024-10-26 628/week @ 2024-11-02 205/week @ 2024-11-09 360/week @ 2024-11-16 1818/week @ 2024-11-23 1105/week @ 2024-11-30 757/week @ 2024-12-07

4,072 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.5MB
~115K SLoC