Interface IScriptBuilder

All Known Implementing Classes:
AbstractScriptBuilder, ChScriptBuilder, MsScriptBuilder, PgScriptBuilder

public interface IScriptBuilder
Interface for script builder
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets selected elements from root, compares them between source and target and generates a migration script.
  • Method Details

    • createScript

      String createScript(TreeElement root, IDatabase oldDb, IDatabase newDb) throws IOException
      Gets selected elements from root, compares them between source and target and generates a migration script.
      Parameters:
      root - the root of the diff tree
      oldDb - the source database schema
      newDb - the target database schema
      Returns:
      SQL migration script
      Throws:
      IOException - if an I/O error occurs