Skip to content

Commit

Permalink
修正注释错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Feb 21, 2025
1 parent 38f26a2 commit c93b1c7
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
public class DdlHelper {

/**
* 允许 SQL 脚本文件
* 运行 SQL 脚本文件
*
* @param ddlGenerator DDL 生成器
* @param connection 数据库连接
* @param sqlFiles SQL 文件列表
* @param autoCommit 自动提交事务
* @param autoCommit 是否自动提交事务
* @throws SQLException SQLException
*/
public static void runScript(IDdlGenerator ddlGenerator, Connection connection, List<String> sqlFiles, boolean autoCommit) throws SQLException {
Expand Down Expand Up @@ -106,12 +106,12 @@ public static void runScript(IDdlGenerator ddlGenerator, Connection connection,
}

/**
* 允许 SQL 脚本文件
* 运行 SQL 脚本文件
*
* @param ddlGenerator DDL 生成器
* @param dataSource 数据源
* @param sqlFiles SQL 文件列表
* @param autoCommit 自动提交事务
* @param autoCommit 是否自动提交事务
*/
public static void runScript(IDdlGenerator ddlGenerator, DataSource dataSource, List<String> sqlFiles, boolean autoCommit) {
try (Connection connection = dataSource.getConnection()) {
Expand Down Expand Up @@ -149,8 +149,7 @@ protected static IDdlGenerator getDdlGenerator(String jdbcUrl) throws RuntimeExc
// oracle same type
else if (dbType.oracleSameType()) {
return OracleDdlGenerator.newInstance();
}
else if (DbType.SQLITE == dbType){
} else if (DbType.SQLITE == dbType) {
return SQLiteDdlGenerator.newInstance();
}
// postgresql same type
Expand Down

0 comments on commit c93b1c7

Please sign in to comment.