Skip to content

Commit

Permalink
Merge pull request #6668 from WANGJUEYA/db-support/yashan
Browse files Browse the repository at this point in the history
崖山数据库支持
  • Loading branch information
miemieYaho authored Jan 15, 2025
2 parents 1d99aab + 4fc139a commit e7e446e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ public enum DbType {
* duckdb
*/
DUCKDB("duckdb", "duckdb数据库"),
/**
* yasdb
*/
YASDB("yasdb", "崖山数据库"),
/**
* UNKNOWN DB
*/
Expand Down Expand Up @@ -260,7 +264,8 @@ public boolean mysqlSameType() {
|| this == DbType.OCEAN_BASE
|| this == DbType.CUBRID
|| this == DbType.SUNDB
|| this == DbType.GOLDENDB;
|| this == DbType.GOLDENDB
|| this == DbType.YASDB;
}

public boolean oracleSameType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static DbType getDbType(String jdbcUrl) {
return DbType.GBASE;
} else if (url.contains(":gbasedbt-sqli:") || url.contains(":informix-sqli:")) {
return DbType.GBASE_8S;
} else if (url.contains(":gbase8s-pg:")){
} else if (url.contains(":gbase8s-pg:")) {
return DbType.GBASE8S_PG;
} else if (url.contains(":gbase8c:")) {
return DbType.GBASE_8C;
Expand Down Expand Up @@ -149,8 +149,10 @@ public static DbType getDbType(String jdbcUrl) {
return DbType.VASTBASE;
} else if (url.contains(":goldendb:")) {
return DbType.GOLDENDB;
} else if (url.contains(":duckdb:")){
} else if (url.contains(":duckdb:")) {
return DbType.DUCKDB;
} else if (url.contains(":yasdb:")) {
return DbType.YASDB;
} else {
logger.warn("The jdbcUrl is " + jdbcUrl + ", Mybatis Plus Cannot Read Database type or The Database's Not Supported!");
return DbType.OTHER;
Expand Down

0 comments on commit e7e446e

Please sign in to comment.