public interface MigrationExecutorExecutes a migration.
void execute(Context context) throws java.sql.SQLExceptionExecutes the migration this executor is associated with.
context- The context to use to execute the migration against the DB.
java.sql.SQLException- when the execution of a statement failed.
boolean canExecuteInTransaction()Whether the execution can take place inside a transaction. Almost all implementation should return
true. This however makes it possible to execute certain migrations outside a transaction. This is useful for databases like PostgreSQL and SQL Server where certain statement can only execute outside a transaction.
trueif a transaction should be used (highly recommended), or