https://github.com/zpascal/tokio-postgres-rustls-connection-pool-demo
https://github.com/zpascal/tokio-postgres-rustls-connection-pool-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zpascal/tokio-postgres-rustls-connection-pool-demo
- Owner: ZPascal
- Created: 2021-05-16T09:08:48.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T09:16:17.000Z (about 5 years ago)
- Last Synced: 2024-10-19T06:05:07.825Z (over 1 year ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connecting Securely for PostgreSQL amd using deadpool connection pooler
This project demonstrates how to use [Tokio Postgres](https://crates.io/crates/tokio-postgres) with [Rustls](https://crates.io/crates/rustls) to connect to PostgreSQL over TLS.
## Influenced repositories
- https://github.com/ecliptical/tokio-postgres-rustls-rds-demo
## Command
```bash
env PG.DBNAME=postgres PG.HOST=localhost PG.PORT=6432 PG.USER=postgres PG.PASSWORD=postgres DB_CA_CERT=docker/files/cert/ca.pem RUST_LOG=debug cargo run
```