mirror of
https://gitee.com/dromara/hutool.git
synced 2025-09-19 01:58:19 +08:00
feat: 增加腾讯数据库TDSQL PostgreSQL版本、TDSQL-H LibraDB、Snowflake、Teradata驱动支持
This commit is contained in:
@@ -179,6 +179,18 @@ public class DialectFactory implements DriverNamePool {
|
||||
} else if (nameContainsProductInfo.contains("gbase")) {
|
||||
// 南大通用数据库 GBase 8a
|
||||
driver = DRIVER_GBASE;
|
||||
} else if (nameContainsProductInfo.contains("tdsql-pg")) {
|
||||
// 腾讯数据库 TDSQL PostgreSQL 版本,见:https://cloud.tencent.com/document/product/1129/116487
|
||||
driver = DRIVER_TDSQL_POSTGRESQL;
|
||||
} else if (nameContainsProductInfo.contains("clickhouse")) {
|
||||
// 腾讯数据库 TDSQL-H LibraDB,见:https://cloud.tencent.com/document/product/1488/79810
|
||||
driver = DRIVER_TDSQL_H_LIBRADB;
|
||||
} else if (nameContainsProductInfo.contains("snowflake")) {
|
||||
// Snowflake,见:https://docs.snowflake.cn/zh/developer-guide/jdbc/jdbc-configure#label-jdbc-connection-string
|
||||
driver = DRIVER_SNOWFLAKE;
|
||||
} else if (nameContainsProductInfo.contains("teradata")) {
|
||||
// Teradata,见:https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/frameset.html 页面 JDBC Interfaces A-L 部分
|
||||
driver = DRIVER_TERADATA;
|
||||
}
|
||||
|
||||
return driver;
|
||||
|
@@ -114,6 +114,26 @@ public interface DriverNamePool {
|
||||
* 见:https://www.gbase.cn/download/gbase-8c?category=DRIVER_PACKAGE 页面 GBase8c_JDBC.zip 中的《JDBC 使用手册_V1.0_20230818.pdf》p14
|
||||
*/
|
||||
String DRIVER_GBASE8C = "cn.gbase8c.Driver";
|
||||
/**
|
||||
* JDBC 驱动 腾讯 TDSQL PostgreSQL 版本<br>
|
||||
* 见:https://cloud.tencent.com/document/product/1129/116487
|
||||
*/
|
||||
String DRIVER_TDSQL_POSTGRESQL = "com.tencentcloud.tdsql.pg.jdbc.Driver";
|
||||
/**
|
||||
* JDBC 驱动 腾讯 TDSQL-H LibraDB<br>
|
||||
* 见:https://cloud.tencent.com/document/product/1488/79810
|
||||
*/
|
||||
String DRIVER_TDSQL_H_LIBRADB = "ru.yandex.clickhouse.ClickHouseDriver";
|
||||
/**
|
||||
* JDBC 驱动 Snowflake<br>
|
||||
* 见:https://docs.snowflake.cn/zh/developer-guide/jdbc/jdbc-configure#label-jdbc-connection-string
|
||||
*/
|
||||
String DRIVER_SNOWFLAKE = "net.snowflake.client.jdbc.SnowflakeDriver";
|
||||
/**
|
||||
* JDBC 驱动 Teradata<br>
|
||||
* 见:https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/frameset.html 页面 JDBC Interfaces A-L 部分
|
||||
*/
|
||||
String DRIVER_TERADATA = "com.teradata.jdbc.TeraDriver";
|
||||
/**
|
||||
* JDBC 驱动 神州数据库
|
||||
*/
|
||||
|
Reference in New Issue
Block a user