File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-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.4.2 </version >
8+ <version >7.5.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.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 ;
Original file line number Diff line number Diff 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 ()) {
Original file line number Diff line number Diff 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 // 暂时只兼容以上几种
You can’t perform that action at this time.
0 commit comments