接口 IDdlGenerator

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

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

    • existTable

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

      default boolean existTable(Connection connection) throws SQLException
      检查getDdlHistory()表是否存在
      参数:
      connection - 数据库连接
      返回:
      是否存在
      抛出:
      SQLException - SQLException
      从以下版本开始:
      3.5.13
    • 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