File tree Expand file tree Collapse file tree
APIJSONORM/src/main/java/apijson/orm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1091,6 +1091,30 @@ public static boolean isPresto(String db) {
10911091 return DATABASE_PRESTO .equals (db );
10921092 }
10931093
1094+ @ Override
1095+ public boolean isSnowflake () {
1096+ return isSnowflake (getSQLDatabase ());
1097+ }
1098+ public static boolean isSnowflake (String db ) {
1099+ return DATABASE_SNOWFLAKE .equals (db );
1100+ }
1101+
1102+ @ Override
1103+ public boolean isDatabricks () {
1104+ return isDatabricks (getSQLDatabase ());
1105+ }
1106+ public static boolean isDatabricks (String db ) {
1107+ return DATABASE_DATABRICKS .equals (db );
1108+ }
1109+
1110+ @ Override
1111+ public boolean isCassandra () {
1112+ return isCassandra (getSQLDatabase ());
1113+ }
1114+ public static boolean isCassandra (String db ) {
1115+ return DATABASE_CASSANDRA .equals (db );
1116+ }
1117+
10941118 @ Override
10951119 public boolean isTrino () {
10961120 return isTrino (getSQLDatabase ());
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ public interface SQLConfig {
3131 String DATABASE_HIVE = "HIVE" ; // https://hive.apache.org
3232 String DATABASE_PRESTO = "PRESTO" ; // Facebook PrestoDB https://prestodb.io
3333 String DATABASE_TRINO = "TRINO" ; // PrestoSQL https://trino.io
34+ String DATABASE_SNOWFLAKE = "SNOWFLAKE" ; // https://www.snowflake.com
35+ String DATABASE_DATABRICKS = "DATABRICKS" ; // https://www.databricks.com
36+ String DATABASE_CASSANDRA = "CASSANDRA" ; // https://cassandra.apache.org
3437 String DATABASE_INFLUXDB = "INFLUXDB" ; // https://www.influxdata.com/products/influxdb-overview
3538 String DATABASE_TDENGINE = "TDENGINE" ; // https://tdengine.com
3639 String DATABASE_REDIS = "REDIS" ;
@@ -58,6 +61,9 @@ public interface SQLConfig {
5861 boolean isClickHouse ();
5962 boolean isHive ();
6063 boolean isPresto ();
64+ boolean isSnowflake ();
65+ boolean isDatabricks ();
66+ boolean isCassandra ();
6167 boolean isTrino ();
6268 boolean isInfluxDB ();
6369 boolean isTDengine ();
You can’t perform that action at this time.
0 commit comments