2014-08-15 06:05:11 +00:00
|
|
|
# Rust-Postgres
|
2017-07-09 02:53:39 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
PostgreSQL support for Rust.
|
2013-09-03 06:19:03 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
## postgres [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres)
|
2015-12-07 01:20:47 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
[Documentation](https://docs.rs/postgres)
|
2015-02-08 03:55:05 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
A native, synchronous PostgreSQL client.
|
2015-12-06 20:42:57 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
## tokio-postgres [![Latest Version](https://img.shields.io/crates/v/tokio-postgres.svg)](https://crates.io/crates/tokio-postgres)
|
2015-12-06 20:42:57 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
[Documentation](https://docs.rs/tokio-postgres)
|
2016-02-14 01:57:59 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
A native, asynchronous PostgreSQL client.
|
2016-02-14 01:57:59 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
## postgres-types [![Latest Version](https://img.shields.io/crates/v/postgres-types.svg)](https://crates.io/crates/postgres-types)
|
2017-03-10 23:33:43 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
[Documentation](https://docs.rs/postgres-types)
|
2017-03-10 23:33:43 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
Conversions between Rust and Postgres types.
|
2017-03-10 23:33:43 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
## postgres-native-tls [![Latest Version](https://img.shields.io/crates/v/postgres-native-tls.svg)](https://crates.io/crates/postgres-native-tls)
|
2017-03-10 23:33:43 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
[Documentation](https://docs.rs/postgres-native-tls)
|
2017-03-11 00:20:51 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
TLS support for postgres and tokio-postgres via native-tls.
|
2017-03-11 00:20:51 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
## postgres-openssl [![Latest Version](https://img.shields.io/crates/v/postgres-openssl.svg)](https://crates.io/crates/postgres-openssl)
|
2018-01-29 00:42:36 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
[Documentation](https://docs.rs/postgres-openssl)
|
2018-01-29 00:42:36 +00:00
|
|
|
|
2019-10-22 01:04:58 +00:00
|
|
|
TLS support for postgres and tokio-postgres via openssl.
|
2020-11-30 17:27:21 +00:00
|
|
|
|
|
|
|
# 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`.
|
|
|
|
1. Make sure your user has permissions for docker.
|
|
|
|
1. On ubuntu: ``sudo usermod -aG docker $USER``
|
|
|
|
1. Change to top-level directory of `rust-postgres` repo.
|
|
|
|
1. Run `docker-compose up -d`.
|
|
|
|
1. Run `cargo test`.
|
|
|
|
1. Run `docker-compose stop`.
|