新增支持物联网时序数据库 TDengine,版本提升为 5.2.0

This commit is contained in:
TommyLemon 2022-08-08 12:50:24 +08:00
parent 0c70815170
commit 98f282656a
4 changed files with 14 additions and 10 deletions

View File

@ -5,7 +5,7 @@
<groupId>com.github.Tencent</groupId>
<artifactId>APIJSON</artifactId>
<version>5.1.6</version>
<version>5.2.0</version>
<packaging>jar</packaging>
<name>APIJSONORM</name>

View File

@ -13,8 +13,8 @@ import java.text.SimpleDateFormat;
public class Log {
public static boolean DEBUG = true;
public static final String VERSION = "5.1.0";
public static final String VERSION = "5.2.0";
public static final String KEY_SYSTEM_INFO_DIVIDER = "---|-----APIJSON SYSTEM INFO-----|---";
//默认的时间格式

View File

@ -997,7 +997,16 @@ public abstract class AbstractSQLConfig implements SQLConfig {
return DATABASE_HIVE.equals(db);
}
@Override
@Override
public boolean isTDengine() {
return isTDengine(getSQLDatabase());
}
public static boolean isTDengine(String db) {
return DATABASE_TDENGINE.equals(db);
}
@Override
public String getQuote() {
return isMySQL() || isClickHouse() || isTDengine() ? "`" : "\"";
}

View File

@ -42,13 +42,8 @@ public interface SQLConfig {
boolean isDb2();
boolean isClickHouse();
boolean isHive();
default boolean isTDengine() {
return isTDengine(getDatabase());
}
boolean isTDengine();
static boolean isTDengine(String db) {
return DATABASE_TDENGINE.equals(db);
}
//暂时只兼容以上几种
// boolean isSQL();