Class AbstractScriptBuilder

java.lang.Object
org.pgcodekeeper.core.database.base.script.AbstractScriptBuilder
All Implemented Interfaces:
IScriptBuilder
Direct Known Subclasses:
ChScriptBuilder, MsScriptBuilder, PgScriptBuilder

public abstract class AbstractScriptBuilder extends Object implements IScriptBuilder
  • Method Details

    • createScript

      public String createScript(TreeElement root, IDatabase oldDb, IDatabase newDb) throws IOException
      Description copied from interface: IScriptBuilder
      Gets selected elements from root, compares them between source and target and generates a migration script.
      Specified by:
      createScript in interface IScriptBuilder
      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