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 55
66 <groupId >com.github.Tencent</groupId >
77 <artifactId >APIJSON</artifactId >
8- <version >7.7 .0</version >
8+ <version >7.8 .0</version >
99 <packaging >jar</packaging >
1010
1111 <name >APIJSONORM</name >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class Log {
1414
1515 public static boolean DEBUG = true ;
1616
17- public static final String VERSION = "7.7 .0" ;
17+ public static final String VERSION = "7.8 .0" ;
1818 public static final String KEY_SYSTEM_INFO_DIVIDER = "\n ---|-----APIJSON SYSTEM INFO-----|---\n " ;
1919
2020 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
193193 DATABASE_LIST .add (DATABASE_MILVUS );
194194 DATABASE_LIST .add (DATABASE_INFLUXDB );
195195 DATABASE_LIST .add (DATABASE_TDENGINE );
196+ DATABASE_LIST .add (DATABASE_TIMESCALEDB );
196197 DATABASE_LIST .add (DATABASE_IOTDB );
197198 DATABASE_LIST .add (DATABASE_SNOWFLAKE );
198199 DATABASE_LIST .add (DATABASE_DATABRICKS );
@@ -1278,6 +1279,14 @@ public static boolean isTDengine(String db) {
12781279 return DATABASE_TDENGINE .equals (db );
12791280 }
12801281
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+
12811290
12821291 public boolean isIoTDB () {
12831292 return isIoTDB (getDatabase ());
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public interface SQLConfig<T extends Object> {
3939 String DATABASE_MILVUS = "MILVUS" ; // https://milvus.io
4040 String DATABASE_INFLUXDB = "INFLUXDB" ; // https://www.influxdata.com/products/influxdb-overview
4141 String DATABASE_TDENGINE = "TDENGINE" ; // https://tdengine.com
42+ String DATABASE_TIMESCALEDB = "TIMESCALEDB" ; // https://www.timescale.com
4243 String DATABASE_IOTDB = "IOTDB" ; // https://iotdb.apache.org/zh/UserGuide/latest/API/Programming-JDBC.html
4344
4445 String DATABASE_REDIS = "REDIS" ; // https://redisql.com
@@ -98,6 +99,7 @@ public interface SQLConfig<T extends Object> {
9899 boolean isMilvus ();
99100 boolean isInfluxDB ();
100101 boolean isTDengine ();
102+ boolean isTimescaleDB ();
101103 boolean isIoTDB ();
102104 boolean isRedis ();
103105 boolean isMongoDB ();
Original file line number Diff line number Diff line change @@ -226,6 +226,9 @@ else if (config.isInfluxDB()) {
226226 else if (config .isTDengine ()) {
227227 db = SQLConfig .DATABASE_TDENGINE + " " + dbVersion ;
228228 }
229+ else if (config .isTimescaleDB ()) {
230+ db = SQLConfig .DATABASE_TIMESCALEDB + " " + dbVersion ;
231+ }
229232 else if (config .isIoTDB ()) {
230233 db = SQLConfig .DATABASE_IOTDB + " " + dbVersion ;
231234 }
You can’t perform that action at this time.
0 commit comments