#database #postgres #postgresql #sql

postgres-types

Conversions between Rust and Postgres values

11 releases

0.2.4 Aug 20, 2022
0.2.3 Apr 30, 2022
0.2.2 Sep 29, 2021
0.2.1 Apr 3, 2021
0.1.0-alpha.2 Nov 28, 2019

#339 in Database interfaces

Download history 54105/week @ 2022-12-05 50041/week @ 2022-12-12 43626/week @ 2022-12-19 24297/week @ 2022-12-26 38535/week @ 2023-01-02 48370/week @ 2023-01-09 53151/week @ 2023-01-16 60644/week @ 2023-01-23 58979/week @ 2023-01-30 63368/week @ 2023-02-06 64168/week @ 2023-02-13 58675/week @ 2023-02-20 66411/week @ 2023-02-27 67972/week @ 2023-03-06 68167/week @ 2023-03-13 73110/week @ 2023-03-20

280,059 downloads per month
Used in 329 crates (54 directly)

MIT/Apache

215KB
5.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

~2.5MB
~78K SLoC