mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -767,6 +767,18 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
}
|
||||
}
|
||||
|
||||
public static List<String> showTables(Connection conn, String dbType) throws SQLException {
|
||||
if (JdbcConstants.MYSQL.equals(dbType)) {
|
||||
return MySqlUtils.showTables(conn);
|
||||
}
|
||||
|
||||
if (JdbcConstants.ORACLE.equals(dbType)) {
|
||||
return OracleUtils.showTables(conn);
|
||||
}
|
||||
|
||||
throw new SQLException("show tables dbType not support for " + dbType);
|
||||
}
|
||||
|
||||
public static String getCreateTableScript(Connection conn, String dbType) throws SQLException {
|
||||
return getCreateTableScript(conn, dbType, true, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user