Skip to content

Commit fa637b8

Browse files
authored
Merge pull request #7 from louloulin/feature-gaussdb
Feature opengauss and gauss
2 parents 4fb4104 + 7217029 commit fa637b8

39 files changed

+4654
-177
lines changed

.env.example

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# GaussDB 测试数据库连接配置
2+
#
3+
# 使用方法:
4+
# 1. 复制此文件为 .env
5+
# 2. 根据实际环境修改配置
6+
# 3. 测试会自动加载这些环境变量
7+
#
8+
# 注意:.env 文件已在 .gitignore 中,不会被提交到版本库
9+
10+
# === 基础连接参数 ===
11+
PGUSER=gaussdb
12+
PGPASSWORD=Gaussdb@123
13+
PGHOST=localhost
14+
PGPORT=5433
15+
PGDATABASE=postgres
16+
17+
# === 完整连接字符串(可选,优先级最高)===
18+
# 如果设置了此变量,将直接使用,忽略上面的单个参数
19+
# TEST_CONN_STR=user=gaussdb password=Gaussdb@123 host=localhost port=5433 dbname=postgres
20+
21+
# === 日志配置 ===
22+
RUST_LOG=info
23+
RUST_BACKTRACE=1
24+
25+
# === 配置示例 ===
26+
#
27+
# 本地 Docker 配置:
28+
# PGHOST=localhost
29+
# PGPORT=5433
30+
#
31+
# 远程服务器配置:
32+
# PGHOST=113.44.80.136
33+
# PGPORT=8000
34+

.env.remote

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# GaussDB 测试数据库连接配置
2+
3+
# === 基础连接参数 ===
4+
PGUSER=gaussdb
5+
PGPASSWORD=Gaussdb@123
6+
PGHOST=113.44.80.136
7+
PGPORT=8000
8+
PGDATABASE=postgres
9+
10+
# === 日志配置 ===
11+
RUST_LOG=info
12+
RUST_BACKTRACE=1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ scripts/*.bat
1515
*.log
1616

1717
source/
18+
.env

0 commit comments

Comments
 (0)