程序包 cool.scx.dao
类 SchemaHelper
java.lang.Object
cool.scx.dao.SchemaHelper
架构管理工具
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancheckNeedFixTable(Table<?> tableInfo, String databaseName, DataSource dataSource) 检查是否需要修复表static voidfixTable(Table<?> tableInfo, String databaseName, DataSource dataSource) astatic StringgetMigrateSQL(Table<?> oldTable, Table<?> newTable, Dialect dialect)
-
构造器详细资料
-
SchemaHelper
public SchemaHelper()
-
-
方法详细资料
-
getMigrateSQL
-
verify
-
fixTable
public static void fixTable(Table<?> tableInfo, String databaseName, DataSource dataSource) throws SQLException a- 参数:
tableInfo- a- 抛出:
SQLException- a
-
checkNeedFixTable
public static boolean checkNeedFixTable(Table<?> tableInfo, String databaseName, DataSource dataSource) throws SQLException 检查是否需要修复表- 参数:
tableInfo- a- 返回:
- true 需要 false 不需要
- 抛出:
SQLException- e
-