File tree 2 files changed +10
-0
lines changed
APIJSONORM/src/main/java/apijson/orm
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1301,6 +1301,14 @@ public static boolean isMQ(String db) {
1301
1301
return DATABASE_MQ .equals (db ) || isKafka (db );
1302
1302
}
1303
1303
1304
+ @ Override
1305
+ public boolean isSQLite () {
1306
+ return isSQLite (getSQLDatabase ());
1307
+ }
1308
+ public static boolean isSQLite (String db ) {
1309
+ return DATABASE_SQLITE .equals (db );
1310
+ }
1311
+
1304
1312
@ Override
1305
1313
public String getQuote () {
1306
1314
if (isElasticsearch ()) {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public interface SQLConfig<T extends Object> {
41
41
String DATABASE_MONGODB = "MONGODB" ; // https://www.mongodb.com/docs/atlas/data-federation/query/query-with-sql
42
42
String DATABASE_KAFKA = "KAFKA" ; // https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Kafka
43
43
String DATABASE_MQ = "MQ" ; //
44
+ String DATABASE_SQLITE = "SQLITE" ; // https://www.sqlite.org
44
45
45
46
String SCHEMA_INFORMATION = "information_schema" ; //MySQL, PostgreSQL, SQL Server 都有的系统模式
46
47
String SCHEMA_SYS = "sys" ; //SQL Server 系统模式
@@ -91,6 +92,7 @@ public interface SQLConfig<T extends Object> {
91
92
boolean isMongoDB ();
92
93
boolean isKafka ();
93
94
boolean isMQ ();
95
+ boolean isSQLite ();
94
96
95
97
96
98
// 暂时只兼容以上几种
You can’t perform that action at this time.
0 commit comments