#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

#331 in #native

Download history 360/week @ 2024-11-16 1818/week @ 2024-11-23 1050/week @ 2024-11-30 830/week @ 2024-12-07 1034/week @ 2024-12-14 477/week @ 2024-12-21 223/week @ 2024-12-28 772/week @ 2025-01-04 1489/week @ 2025-01-11 930/week @ 2025-01-18 584/week @ 2025-01-25 1149/week @ 2025-02-01 1554/week @ 2025-02-08 705/week @ 2025-02-15 1145/week @ 2025-02-22 893/week @ 2025-03-01

4,530 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–6MB
~124K SLoC