mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #1760 from yinheli/feature/support-kylin
add kylin support
This commit is contained in:
@@ -93,6 +93,10 @@ public interface JdbcConstants {
|
||||
public static final String ENTERPRISEDB = "edb";
|
||||
public static final String ENTERPRISEDB_DRIVER = "com.edb.Driver";
|
||||
|
||||
public static final String KYLIN = "kylin";
|
||||
public static final String KYLIN_DRIVER = "org.apache.kylin.jdbc.Driver";
|
||||
|
||||
|
||||
public static final String SQLITE = "sqlite";
|
||||
public static final String SQLITE_DRIVER = "org.sqlite.JDBC";
|
||||
}
|
||||
|
||||
@@ -448,6 +448,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return "org.apache.phoenix.queryserver.client.Driver";
|
||||
} else if (rawUrl.startsWith("jdbc:phoenix://")) {
|
||||
return JdbcConstants.PHOENIX_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:kylin:")) {
|
||||
return JdbcConstants.KYLIN_DRIVER;
|
||||
} else {
|
||||
throw new SQLException("unkow jdbc driver : " + rawUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user