File tree 5 files changed +17
-3
lines changed
5 files changed +17
-3
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.6 .0</version >
8
+ <version >7.7 .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.6 .0" ;
17
+ public static final String VERSION = "7.7 .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 @@ -185,6 +185,7 @@ public abstract class AbstractSQLConfig<T extends Object> implements SQLConfig<T
185
185
DATABASE_LIST .add (DATABASE_DAMENG );
186
186
DATABASE_LIST .add (DATABASE_KINGBASE );
187
187
DATABASE_LIST .add (DATABASE_ELASTICSEARCH );
188
+ DATABASE_LIST .add (DATABASE_MANTICORE );
188
189
DATABASE_LIST .add (DATABASE_CLICKHOUSE );
189
190
DATABASE_LIST .add (DATABASE_HIVE );
190
191
DATABASE_LIST .add (DATABASE_PRESTO );
@@ -1189,6 +1190,14 @@ public static boolean isElasticsearch(String db) {
1189
1190
return DATABASE_ELASTICSEARCH .equals (db );
1190
1191
}
1191
1192
1193
+ @ Override
1194
+ public boolean isManticore () {
1195
+ return isManticore (getSQLDatabase ());
1196
+ }
1197
+ public static boolean isManticore (String db ) {
1198
+ return DATABASE_MANTICORE .equals (db );
1199
+ }
1200
+
1192
1201
@ Override
1193
1202
public boolean isClickHouse () {
1194
1203
return isClickHouse (getSQLDatabase ());
@@ -1344,7 +1353,7 @@ public static boolean isOpenGauss(String db) {
1344
1353
1345
1354
@ Override
1346
1355
public String getQuote () { // MongoDB 同时支持 `tbl` 反引号 和 "col" 双引号
1347
- if (isElasticsearch () || isIoTDB () || isSurrealDB ()) {
1356
+ if (isElasticsearch () || isManticore () || isIoTDB () || isSurrealDB ()) {
1348
1357
return "" ;
1349
1358
}
1350
1359
return isMySQL () || isMariaDB () || isTiDB () || isClickHouse () || isTDengine () || isMilvus () ? "`" : "\" " ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public interface SQLConfig<T extends Object> {
28
28
String DATABASE_DAMENG = "DAMENG" ; // https://www.dameng.com
29
29
String DATABASE_KINGBASE = "KINGBASE" ; // https://www.kingbase.com.cn
30
30
String DATABASE_ELASTICSEARCH = "ELASTICSEARCH" ; // https://www.elastic.co/guide/en/elasticsearch/reference/7.4/xpack-sql.html
31
+ String DATABASE_MANTICORE = "MANTICORE" ; // https://manticoresearch.com
31
32
String DATABASE_CLICKHOUSE = "CLICKHOUSE" ; // https://clickhouse.com
32
33
String DATABASE_HIVE = "HIVE" ; // https://hive.apache.org
33
34
String DATABASE_PRESTO = "PRESTO" ; // Facebook PrestoDB https://prestodb.io
@@ -86,6 +87,7 @@ public interface SQLConfig<T extends Object> {
86
87
boolean isDameng ();
87
88
boolean isKingBase ();
88
89
boolean isElasticsearch ();
90
+ boolean isManticore ();
89
91
boolean isClickHouse ();
90
92
boolean isHive ();
91
93
boolean isPresto ();
Original file line number Diff line number Diff line change @@ -211,6 +211,9 @@ else if (config.isKingBase()) {
211
211
else if (config .isElasticsearch ()) {
212
212
db = SQLConfig .DATABASE_ELASTICSEARCH + " " + dbVersion ;
213
213
}
214
+ else if (config .isManticore ()) {
215
+ db = SQLConfig .DATABASE_MANTICORE + " " + dbVersion ;
216
+ }
214
217
else if (config .isClickHouse ()) {
215
218
db = SQLConfig .DATABASE_CLICKHOUSE + " " + dbVersion ;
216
219
}
You can’t perform that action at this time.
0 commit comments