File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/apijson/framework Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments