File tree 4 files changed +13
-2
lines changed
4 files changed +13
-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.4.2 </version >
8
+ <version >7.5.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.4.2 " ;
17
+ public static final String VERSION = "7.5.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 @@ -200,6 +200,7 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
200
200
DATABASE_LIST .add (DATABASE_MQ );
201
201
DATABASE_LIST .add (DATABASE_DUCKDB );
202
202
DATABASE_LIST .add (DATABASE_SURREALDB );
203
+ DATABASE_LIST .add (DATABASE_OPENGAUSS );
203
204
204
205
205
206
RAW_MAP = new LinkedHashMap <>(); // 保证顺序,避免配置冲突等意外情况
@@ -1322,6 +1323,14 @@ public static boolean isSurrealDB(String db) {
1322
1323
return DATABASE_SURREALDB .equals (db );
1323
1324
}
1324
1325
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
+
1325
1334
@ Override
1326
1335
public String getQuote () { // MongoDB 同时支持 `tbl` 反引号 和 "col" 双引号
1327
1336
if (isElasticsearch () || isIoTDB () || isSurrealDB ()) {
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public interface SQLConfig<T extends Object> {
45
45
String DATABASE_SQLITE = "SQLITE" ; // https://www.sqlite.org
46
46
String DATABASE_DUCKDB = "DUCKDB" ; // https://duckdb.org
47
47
String DATABASE_SURREALDB = "SURREALDB" ; // https://surrealdb.com
48
+ String DATABASE_OPENGAUSS = "OPENGAUSS" ; // https://surrealdb.com
48
49
49
50
String DATABASE_MQ = "MQ" ; //
50
51
@@ -101,6 +102,7 @@ public interface SQLConfig<T extends Object> {
101
102
boolean isSQLite ();
102
103
boolean isDuckDB ();
103
104
boolean isSurrealDB ();
105
+ boolean isOpenGauss ();
104
106
105
107
106
108
// 暂时只兼容以上几种
You can’t perform that action at this time.
0 commit comments