接口 IDdlGenerator

所有已知实现类:
MysqlDdlGenerator, OracleDdlGenerator, PostgreDdlGenerator, SQLiteDdlGenerator

public interface IDdlGenerator
DDL 生成器接口
从以下版本开始:
2021-06-22
作者:
hubin
  • 方法详细资料

    • existTable

      boolean existTable(String databaseName, Function<String,Boolean> executeFunction)
      表是否存在
      参数:
      databaseName - 数据库名称
      executeFunction - 执行判断函数
      返回:
      exist or no
    • getDdlHistory

      default String getDdlHistory()
      返回 DDL_HISTORY 表名
      返回:
      SQL
    • createDdlHistory

      String createDdlHistory()
      ddl_history sql
      返回:
      SQL
    • selectDdlHistory

      default String selectDdlHistory(String script, String type)
      select ddl_history sql
      参数:
      script - Sql Script
      type - Execute Type
      返回:
      SQL
    • insertDdlHistory

      default String insertDdlHistory(String script, String type, String version)
      insert ddl_history sql
      参数:
      script - Sql Script
      type - Execute Type
      version - Execute Version
      返回:
      SQL