#postgres #derive #postgresql #driver

macro postgres-derive

An internal crate used by postgres-types

12 releases

0.4.2 Apr 30, 2022
0.4.1 Nov 23, 2021
0.4.0 Dec 23, 2019
0.4.0-alpha.1 Oct 15, 2019
0.2.2 Nov 19, 2016

#565 in Procedural macros

Download history 4718/week @ 2022-01-25 5410/week @ 2022-02-01 4946/week @ 2022-02-08 3926/week @ 2022-02-15 3717/week @ 2022-02-22 4660/week @ 2022-03-01 3856/week @ 2022-03-08 3856/week @ 2022-03-15 3722/week @ 2022-03-22 5193/week @ 2022-03-29 11167/week @ 2022-04-05 12701/week @ 2022-04-12 12046/week @ 2022-04-19 5927/week @ 2022-04-26 4424/week @ 2022-05-03 3912/week @ 2022-05-10

28,005 downloads per month
Used in 9 crates (via postgres-types)

MIT/Apache

20KB
537 lines

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

~250–670KB
~16K SLoC