16 releases
0.4.6 | Sep 16, 2024 |
---|---|
0.4.5 | Aug 20, 2023 |
0.4.4 | Mar 27, 2023 |
0.4.3 | Sep 7, 2022 |
0.2.2 | Nov 19, 2016 |
#323 in #native
196,543 downloads per month
Used in 44 crates
(2 directly)
33KB
807 lines
Rust-Postgres
PostgreSQL support for Rust.
postgres
A native, synchronous PostgreSQL client.
tokio-postgres
A native, asynchronous PostgreSQL client.
postgres-types
Conversions between Rust and Postgres types.
postgres-native-tls
TLS support for postgres and tokio-postgres via native-tls.
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:
- Install
docker
anddocker-compose
.- On ubuntu:
sudo apt install docker.io docker-compose
.
- On ubuntu:
- Make sure your user has permissions for docker.
- On ubuntu:
sudo usermod -aG docker $USER
- On ubuntu:
- Change to top-level directory of
rust-postgres
repo. - Run
docker-compose up -d
. - Run
cargo test
. - Run
docker-compose stop
.
lib.rs
:
An internal crate for postgres-types
.
Dependencies
~265–720KB
~17K SLoC