1 个不稳定版本
0.1.0 | 2023年4月19日 |
---|
#6 在 #open-gauss
每月下载量 39
用于 5 个 crate(直接使用 2 个)
99KB
3K SLoC
openGauss-connector-rust
支持 Rust 的 openGauss。此 crate 是从 Rust-Postgres 分支出来的。
openGauss 
本机同步 openGauss 客户端。
tokio-opengauss 
本机异步 openGauss 客户端。
opengauss-types 
Rust 和 Postgres 类型之间的转换。
opengauss-native-tls 
通过 native-tls 为 opengauss 和 tokio-opengauss 提供TLS支持。
opengauss-openssl 
通过 openssl 为 opengauss 和 tokio-opengauss 提供TLS支持。
运行测试套件
测试套件需要 openGauss 以正确的配置运行。最简单的方法是使用 docker
- 安装
docker
和docker-compose
。- 在 centos 和 openEuler 上:
sudo yum install docker docker-compose
。
- 在 centos 和 openEuler 上:
- 确保您的用户有 docker 的权限。
- 在 ubuntu 上:
sudo usermod -aG docker $USER
- 在 ubuntu 上:
- 切换到
openGauss-connector-rust
仓库的顶层目录。 - 运行
docker-compose up -d
。 - 运行
cargo test
。 - 运行
docker-compose stop
。
依赖关系
~14MB
~345K SLoC