File tree Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<groupId >com.github.Tencent</groupId >
7
7
<artifactId >APIJSON</artifactId >
8
- <version >7.7 .0</version >
8
+ <version >7.8 .0</version >
9
9
<packaging >jar</packaging >
10
10
11
11
<name >APIJSONORM</name >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class Log {
14
14
15
15
public static boolean DEBUG = true ;
16
16
17
- public static final String VERSION = "7.7 .0" ;
17
+ public static final String VERSION = "7.8 .0" ;
18
18
public static final String KEY_SYSTEM_INFO_DIVIDER = "\n ---|-----APIJSON SYSTEM INFO-----|---\n " ;
19
19
20
20
public static final String OS_NAME ;
Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
193
193
DATABASE_LIST .add (DATABASE_MILVUS );
194
194
DATABASE_LIST .add (DATABASE_INFLUXDB );
195
195
DATABASE_LIST .add (DATABASE_TDENGINE );
196
+ DATABASE_LIST .add (DATABASE_TIMESCALEDB );
196
197
DATABASE_LIST .add (DATABASE_IOTDB );
197
198
DATABASE_LIST .add (DATABASE_SNOWFLAKE );
198
199
DATABASE_LIST .add (DATABASE_DATABRICKS );
@@ -1278,6 +1279,14 @@ public static boolean isTDengine(String db) {
1278
1279
return DATABASE_TDENGINE .equals (db );
1279
1280
}
1280
1281
1282
+ @ Override
1283
+ public boolean isTimescaleDB () {
1284
+ return isTimescaleDB (getSQLDatabase ());
1285
+ }
1286
+ public static boolean isTimescaleDB (String db ) {
1287
+ return DATABASE_TIMESCALEDB .equals (db );
1288
+ }
1289
+
1281
1290
1282
1291
public boolean isIoTDB () {
1283
1292
return isIoTDB (getDatabase ());
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public interface SQLConfig<T extends Object> {
39
39
String DATABASE_MILVUS = "MILVUS" ; // https://milvus.io
40
40
String DATABASE_INFLUXDB = "INFLUXDB" ; // https://www.influxdata.com/products/influxdb-overview
41
41
String DATABASE_TDENGINE = "TDENGINE" ; // https://tdengine.com
42
+ String DATABASE_TIMESCALEDB = "TIMESCALEDB" ; // https://www.timescale.com
42
43
String DATABASE_IOTDB = "IOTDB" ; // https://iotdb.apache.org/zh/UserGuide/latest/API/Programming-JDBC.html
43
44
44
45
String DATABASE_REDIS = "REDIS" ; // https://redisql.com
@@ -98,6 +99,7 @@ public interface SQLConfig<T extends Object> {
98
99
boolean isMilvus ();
99
100
boolean isInfluxDB ();
100
101
boolean isTDengine ();
102
+ boolean isTimescaleDB ();
101
103
boolean isIoTDB ();
102
104
boolean isRedis ();
103
105
boolean isMongoDB ();
Original file line number Diff line number Diff line change @@ -226,6 +226,9 @@ else if (config.isInfluxDB()) {
226
226
else if (config .isTDengine ()) {
227
227
db = SQLConfig .DATABASE_TDENGINE + " " + dbVersion ;
228
228
}
229
+ else if (config .isTimescaleDB ()) {
230
+ db = SQLConfig .DATABASE_TIMESCALEDB + " " + dbVersion ;
231
+ }
229
232
else if (config .isIoTDB ()) {
230
233
db = SQLConfig .DATABASE_IOTDB + " " + dbVersion ;
231
234
}
You can’t perform that action at this time.
0 commit comments