Skip to content

Commit 31e8d72

Browse files
committed
新增支持华为 openGauss-高斯数据库开源版,高可用、高性能、高安全、高弹性、高智能、易部署、易迁移
#795
1 parent 448f31d commit 31e8d72

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

APIJSONORM/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.Tencent</groupId>
77
<artifactId>APIJSON</artifactId>
8-
<version>7.4.2</version>
8+
<version>7.5.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONORM</name>

APIJSONORM/src/main/java/apijson/Log.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Log {
1414

1515
public static boolean DEBUG = true;
1616

17-
public static final String VERSION = "7.4.2";
17+
public static final String VERSION = "7.5.0";
1818
public static final String KEY_SYSTEM_INFO_DIVIDER = "\n---|-----APIJSON SYSTEM INFO-----|---\n";
1919

2020
public static final String OS_NAME;

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

+9
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
200200
DATABASE_LIST.add(DATABASE_MQ);
201201
DATABASE_LIST.add(DATABASE_DUCKDB);
202202
DATABASE_LIST.add(DATABASE_SURREALDB);
203+
DATABASE_LIST.add(DATABASE_OPENGAUSS);
203204

204205

205206
RAW_MAP = new LinkedHashMap<>(); // 保证顺序,避免配置冲突等意外情况
@@ -1322,6 +1323,14 @@ public static boolean isSurrealDB(String db) {
13221323
return DATABASE_SURREALDB.equals(db);
13231324
}
13241325

1326+
@Override
1327+
public boolean isOpenGauss() {
1328+
return isOpenGauss(getSQLDatabase());
1329+
}
1330+
public static boolean isOpenGauss(String db) {
1331+
return DATABASE_OPENGAUSS.equals(db);
1332+
}
1333+
13251334
@Override
13261335
public String getQuote() { // MongoDB 同时支持 `tbl` 反引号 和 "col" 双引号
13271336
if(isElasticsearch() || isIoTDB() || isSurrealDB()) {

APIJSONORM/src/main/java/apijson/orm/SQLConfig.java

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public interface SQLConfig<T extends Object> {
4545
String DATABASE_SQLITE = "SQLITE"; // https://www.sqlite.org
4646
String DATABASE_DUCKDB = "DUCKDB"; // https://duckdb.org
4747
String DATABASE_SURREALDB = "SURREALDB"; // https://surrealdb.com
48+
String DATABASE_OPENGAUSS = "OPENGAUSS"; // https://surrealdb.com
4849

4950
String DATABASE_MQ = "MQ"; //
5051

@@ -101,6 +102,7 @@ public interface SQLConfig<T extends Object> {
101102
boolean isSQLite();
102103
boolean isDuckDB();
103104
boolean isSurrealDB();
105+
boolean isOpenGauss();
104106

105107

106108
// 暂时只兼容以上几种

0 commit comments

Comments
 (0)