Skip to content

Commit e1f09e3

Browse files
committed
Java: MultiDataSource 新增 QuestDB-高性能实时分析时序数据库 的配置示例
1 parent eaabc92 commit e1f09e3

File tree

4 files changed

+932
-0
lines changed

4 files changed

+932
-0
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLConfig.java

+9
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ public String getDBUri() {
245245
// if (isTimescaleDB()) { // PG JDBC 必须在 URI 传 catalog
246246
// return "jdbc:postgresql://localhost:5432/postgres?stringtype=unspecified"; //TODO 改成你自己的
247247
// }
248+
// if (isQuestDB()) { // PG JDBC 必须在 URI 传 catalog
249+
// return "jdbc:postgresql://localhost:8812/qdb"; //TODO 改成你自己的
250+
// }
248251
if (isInfluxDB()) {
249252
return "http://203.189.6.3:8086"; //TODO 改成你自己的
250253
}
@@ -321,6 +324,9 @@ public String getDBAccount() {
321324
// if (isTimescaleDB()) {
322325
// return "postgres"; //TODO 改成你自己的
323326
// }
327+
// if (isQuestDB()) {
328+
// return "admin"; //TODO 改成你自己的
329+
// }
324330
if (isInfluxDB()) {
325331
return "iotos";
326332
}
@@ -396,6 +402,9 @@ public String getDBPassword() {
396402
// if (isTimescaleDB()) {
397403
// return "password"; //TODO 改成你自己的
398404
// }
405+
// if (isQuestDB()) {
406+
// return "quest"; //TODO 改成你自己的
407+
// }
399408
if (isInfluxDB()) {
400409
return "apijson@123"; //TODO 改成你自己的
401410
}

0 commit comments

Comments
 (0)