public interface MigrationExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Connection connection)
Executes the migration this executor is associated with.
|
boolean |
executeInTransaction()
Whether the execution should take place inside a transaction.
|
void execute(Connection connection) throws SQLException
connection - The connection to use to execute the migration against the DB.SQLException - when the execution of a statement failed.boolean executeInTransaction()
true.
This however makes it possible to execute certain migrations outside a transaction. This is useful for databases
like PostgreSQL where certain statement can only execute outside a transaction.true if a transaction should be used (highly recommended), or false if not.Copyright © 2016. All rights reserved.