Search in sources :

Example 1 with DefaultSqlScriptExecutor

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);
}
Also used : java.sql(java.sql) CallbackExecutor(org.flywaydb.core.internal.callback.CallbackExecutor) DatabaseType(org.flywaydb.core.internal.database.DatabaseType) Connection(java.sql.Connection) Properties(java.util.Properties) ResourceProvider(org.flywaydb.core.api.ResourceProvider) DefaultExecutionStrategy(org.flywaydb.core.internal.database.DefaultExecutionStrategy) ParserSqlScript(org.flywaydb.core.internal.sqlscript.ParserSqlScript) CustomLog(lombok.CustomLog) DefaultSqlScriptExecutor(org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor) Configuration(org.flywaydb.core.api.configuration.Configuration) SqlScriptExecutorFactory(org.flywaydb.core.internal.sqlscript.SqlScriptExecutorFactory) Parser(org.flywaydb.core.internal.parser.Parser) SqlScriptMetadata.getMetadataResource(org.flywaydb.core.internal.sqlscript.SqlScriptMetadata.getMetadataResource) SqlScriptFactory(org.flywaydb.core.internal.sqlscript.SqlScriptFactory) Map(java.util.Map) org.flywaydb.core.internal.jdbc(org.flywaydb.core.internal.jdbc) DatabaseExecutionStrategy(org.flywaydb.core.internal.database.DatabaseExecutionStrategy) Pattern(java.util.regex.Pattern) ParsingContext(org.flywaydb.core.internal.parser.ParsingContext) DatabaseType(org.flywaydb.core.internal.database.DatabaseType) DefaultSqlScriptExecutor(org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor)

Aggregations

java.sql (java.sql)1 Connection (java.sql.Connection)1 Map (java.util.Map)1 Properties (java.util.Properties)1 Pattern (java.util.regex.Pattern)1 CustomLog (lombok.CustomLog)1 ResourceProvider (org.flywaydb.core.api.ResourceProvider)1 Configuration (org.flywaydb.core.api.configuration.Configuration)1 CallbackExecutor (org.flywaydb.core.internal.callback.CallbackExecutor)1 DatabaseExecutionStrategy (org.flywaydb.core.internal.database.DatabaseExecutionStrategy)1 DatabaseType (org.flywaydb.core.internal.database.DatabaseType)1 DefaultExecutionStrategy (org.flywaydb.core.internal.database.DefaultExecutionStrategy)1 org.flywaydb.core.internal.jdbc (org.flywaydb.core.internal.jdbc)1 Parser (org.flywaydb.core.internal.parser.Parser)1 ParsingContext (org.flywaydb.core.internal.parser.ParsingContext)1 DefaultSqlScriptExecutor (org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor)1 ParserSqlScript (org.flywaydb.core.internal.sqlscript.ParserSqlScript)1 SqlScriptExecutorFactory (org.flywaydb.core.internal.sqlscript.SqlScriptExecutorFactory)1 SqlScriptFactory (org.flywaydb.core.internal.sqlscript.SqlScriptFactory)1 SqlScriptMetadata.getMetadataResource (org.flywaydb.core.internal.sqlscript.SqlScriptMetadata.getMetadataResource)1