Skip to content

Commit 6012bb4

Browse files
committed
新增支持 Doris-高性能实时湖仓一体数据库的默认配置
1 parent 75f943f commit 6012bb4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/apijson/framework/APIJSONSQLConfig.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ public String gainDBUri() {
122122
if (isOracle()) {
123123
return "jdbc:oracle:thin:@localhost:1521:orcl"; //TODO 改成你自己的
124124
}
125+
if (isDoris()) {
126+
return "jdbc:mysql://localhost:9030"; //TODO 改成你自己的,TiDB 可以当成 MySQL 使用,默认端口为 4000
127+
}
125128
return null;
126129
}
127130

@@ -138,6 +141,9 @@ public String gainDBAccount() {
138141
if (isOracle()) {
139142
return "scott"; //TODO 改成你自己的
140143
}
144+
if (isDoris()) {
145+
return "root"; //TODO 改成你自己的
146+
}
141147
return null;
142148
}
143149

@@ -154,6 +160,9 @@ public String gainDBPassword() {
154160
if (isOracle()) {
155161
return "tiger"; //TODO 改成你自己的
156162
}
163+
if (isDoris()) {
164+
return ""; //TODO 改成你自己的
165+
}
157166
return null;
158167
}
159168

0 commit comments

Comments
 (0)