Interface Context


  • public interface Context
    The context relevant to a Java-based migration.
    • Method Detail

      • getConfiguration

        Configuration getConfiguration()
        Returns:
        The configuration currently in use.
      • getConnection

        Connection getConnection()
        Returns:
        The JDBC connection being used. Transactions are managed by MigrateDB. When the context is passed to the migrate method, a transaction will already have been started if required and will be automatically committed or rolled back afterward, unless the canExecuteInTransaction method has been implemented to return false.
      • runScript

        void runScript​(Reader script)
        Executes a script on the connection returned by getConnection().