接口 IDdlGenerator
public interface IDdlGenerator
DDL 生成器接口
- 从以下版本开始:
- 2021-06-22
- 作者:
- hubin
-
方法概要
修饰符和类型方法说明ddl_history sqlbooleanexistTable(String databaseName, Function<String, Boolean> executeFunction) 表是否存在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
表是否存在- 参数:
databaseName- 数据库名称executeFunction- 执行判断函数- 返回:
- exist or no
-
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
-