use of org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor in project flyway by flyway.
the class BaseDatabaseType method createSqlScriptExecutorFactory.
public SqlScriptExecutorFactory createSqlScriptExecutorFactory(final JdbcConnectionFactory jdbcConnectionFactory, final CallbackExecutor callbackExecutor, final StatementInterceptor statementInterceptor) {
boolean supportsBatch = false;
final boolean finalSupportsBatch = supportsBatch;
final DatabaseType thisRef = this;
return (connection, undo, batch, outputQueryResults) -> new DefaultSqlScriptExecutor(new JdbcTemplate(connection, thisRef), callbackExecutor, undo, finalSupportsBatch && batch, outputQueryResults, statementInterceptor);
}
Aggregations