接口 IDdlGenerator
public interface IDdlGenerator
DDL 生成器接口
- 从以下版本开始:
- 2021-06-22
- 作者:
- hubin
-
方法概要
修饰符和类型方法说明ddl_history sqldefault booleanexistTable(String databaseName, Function<String, Boolean> executeFunction) 已过时。default booleanexistTable(Connection connection) 检查getDdlHistory()表是否存在default String返回 DDL_HISTORY 表名default StringinsertDdlHistory(String script, String type, String version) insert ddl_history sqldefault StringselectDdlHistory(String script, String type) select ddl_history sql
-
方法详细资料
-
existTable
@Deprecated default boolean existTable(String databaseName, Function<String, Boolean> executeFunction) 已过时。3.5.13existTable(Connection)表是否存在- 参数:
databaseName- 数据库名称executeFunction- 执行判断函数- 返回:
- exist or no
-
existTable
检查getDdlHistory()表是否存在- 参数:
connection- 数据库连接- 返回:
- 是否存在
- 抛出:
SQLException- SQLException- 从以下版本开始:
- 3.5.13
-
getDdlHistory
返回 DDL_HISTORY 表名- 返回:
- SQL
-
createDdlHistory
String createDdlHistory()ddl_history sql- 返回:
- SQL
-
selectDdlHistory
select ddl_history sql- 参数:
script- Sql Scripttype- Execute Type- 返回:
- SQL
-
insertDdlHistory
insert ddl_history sql- 参数:
script- Sql Scripttype- Execute Typeversion- Execute Version- 返回:
- SQL
-
existTable(Connection)