mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add presto支持
This commit is contained in:
@@ -470,7 +470,9 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return JdbcConstants.ELASTIC_SEARCH_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:clickhouse:")) {
|
||||
return JdbcConstants.CLICKHOUSE_DRIVER;
|
||||
} else {
|
||||
} else if(rawUrl.startsWith("jdbc:presto:")) {
|
||||
return JdbcConstants.PRESTO_DRIVER;
|
||||
}else {
|
||||
throw new SQLException("unkow jdbc driver : " + rawUrl);
|
||||
}
|
||||
}
|
||||
@@ -563,6 +565,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return ELASTIC_SEARCH;
|
||||
} else if (rawUrl.startsWith("jdbc:clickhouse:")) {
|
||||
return CLICKHOUSE;
|
||||
}else if (rawUrl.startsWith("jdbc:presto:")) {
|
||||
return PRESTO;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user