https://github.com/rust-postgres/rust-postgres
Native PostgreSQL driver for the Rust programming language
https://github.com/rust-postgres/rust-postgres
Last synced: about 2 months ago
JSON representation
Native PostgreSQL driver for the Rust programming language
- Host: GitHub
- URL: https://github.com/rust-postgres/rust-postgres
- Owner: rust-postgres
- License: apache-2.0
- Created: 2013-07-23T04:43:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-09-20T08:31:47.000Z (about 2 months ago)
- Last Synced: 2025-09-20T08:32:21.807Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 4.93 MB
- Stars: 3,791
- Watchers: 47
- Forks: 510
- Open Issues: 148
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- fucking-awesome-rust - rust-postgres - A native 🌎 [PostgreSQL](www.postgresql.org/) client (Libraries / Database)
- awesome-rust - rust-postgres - A native [PostgreSQL](https://www.postgresql.org/) client (Libraries / Database)
README
# Rust-Postgres
PostgreSQL support for Rust.
## postgres [](https://crates.io/crates/postgres)
[Documentation](https://docs.rs/postgres)
A native, synchronous PostgreSQL client.
## tokio-postgres [](https://crates.io/crates/tokio-postgres)
[Documentation](https://docs.rs/tokio-postgres)
A native, asynchronous PostgreSQL client.
## postgres-types [](https://crates.io/crates/postgres-types)
[Documentation](https://docs.rs/postgres-types)
Conversions between Rust and Postgres types.
## postgres-native-tls [](https://crates.io/crates/postgres-native-tls)
[Documentation](https://docs.rs/postgres-native-tls)
TLS support for postgres and tokio-postgres via native-tls.
## postgres-openssl [](https://crates.io/crates/postgres-openssl)
[Documentation](https://docs.rs/postgres-openssl)
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`.
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`.