1 unstable release
0.1.0 | Apr 19, 2023 |
---|
#6 in #open-gauss
39 downloads per month
Used in 4 crates
(via tokio-opengauss)
215KB
5K
SLoC
openGauss-connector-rust
openGauss support for Rust. This crate is forked from and based on Rust-Postgres.
opengauss 
A native, synchronous openGauss client.
tokio-opengauss 
A native, asynchronous openGauss client.
opengauss-types 
Conversions between Rust and Postgres types.
opengauss-native-tls 
TLS support for opengauss and tokio-opengauss via native-tls.
opengauss-openssl 
TLS support for opengauss and tokio-opengauss via openssl.
Running test suite
The test suite requires openGauss to be running in the correct configuration. The easiest way to do this is with docker:
- Install
docker
anddocker-compose
.- On centos and openEuler:
sudo yum install docker docker-compose
.
- On centos and openEuler:
- Make sure your user has permissions for docker.
- On ubuntu:
sudo usermod -aG docker $USER
- On ubuntu:
- Change to top-level directory of
openGauss-connector-rust
repo. - Run
docker-compose up -d
. - Run
cargo test
. - Run
docker-compose stop
.
Dependencies
~11–20MB
~369K SLoC