#postgres #derive #postgresql

macro postgres-derive

An internal crate used by postgres-types

14 releases

0.4.4 Mar 27, 2023
0.4.3 Sep 7, 2022
0.4.2 Apr 30, 2022
0.4.1 Nov 23, 2021
0.2.2 Nov 19, 2016

#1273 in Procedural macros

Download history 11755/week @ 2023-01-25 11118/week @ 2023-02-01 12422/week @ 2023-02-08 10825/week @ 2023-02-15 12683/week @ 2023-02-22 12508/week @ 2023-03-01 15126/week @ 2023-03-08 16511/week @ 2023-03-15 16627/week @ 2023-03-22 18252/week @ 2023-03-29 15391/week @ 2023-04-05 17317/week @ 2023-04-12 15530/week @ 2023-04-19 13918/week @ 2023-04-26 16621/week @ 2023-05-03 17621/week @ 2023-05-10

67,032 downloads per month
Used in 17 crates (via postgres-types)

MIT/Apache

23KB
611 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.

lib.rs:

An internal crate for postgres-types.

Dependencies

~0.5–0.9MB
~22K SLoC