use of org.flywaydb.core.internal.database.DatabaseExecutionStrategy in project flyway by flyway.
the class SqlMigrationExecutor method execute.
@Override
public void execute(final Context context) throws SQLException {
DatabaseType databaseType = DatabaseTypeRegister.getDatabaseTypeForConnection(context.getConnection());
DatabaseExecutionStrategy strategy = databaseType.createExecutionStrategy(context.getConnection());
strategy.execute(() -> {
executeOnce(context);
return true;
});
}
use of org.flywaydb.core.internal.database.DatabaseExecutionStrategy in project flyway by flyway.
the class JavaMigrationExecutor method execute.
@Override
public void execute(final Context context) throws SQLException {
DatabaseType databaseType = DatabaseTypeRegister.getDatabaseTypeForConnection(context.getConnection());
DatabaseExecutionStrategy strategy = databaseType.createExecutionStrategy(context.getConnection());
strategy.execute(() -> {
executeOnce(context);
return true;
});
}
Aggregations