Skip to content

Commit

Permalink
新增支持物联网时序数据库 TDengine,版本提升为 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Aug 8, 2022
1 parent 0c70815 commit 98f2826
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion APIJSONORM/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions APIJSONORM/src/main/java/apijson/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
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-----|---";

//默认的时间格式
Expand Down
11 changes: 10 additions & 1 deletion APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,16 @@ public static boolean isHive(String db) {
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() ? "`" : "\"";
}
Expand Down
7 changes: 1 addition & 6 deletions APIJSONORM/src/main/java/apijson/orm/SQLConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 98f2826

Please sign in to comment.