0d11db69404e504ce80d41821410af20445d0141
In the ToSql impls for &T and Option<T>, override encode_format to delegate to the impl for T. This ensures that if T overrides this method, it also overrides it for &T and Option<T>.
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
dockeranddocker-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-postgresrepo. - Run
docker-compose up -d. - Run
cargo test. - Run
docker-compose stop.
Description
Languages
Rust
99.3%
Shell
0.7%