public class SqlR2dbcScriptDatabaseInitializer extends R2dbcScriptDatabaseInitializer
R2dbcScriptDatabaseInitializer
for the primary SQL database. May be registered
as a bean to override auto-configuration.Constructor and Description |
---|
SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory,
DatabaseInitializationSettings settings)
Create a new
BatchDataSourceScriptDatabaseInitializer instance. |
SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory,
SqlInitializationProperties properties)
Create a new
SqlDataSourceScriptDatabaseInitializer instance. |
Modifier and Type | Method and Description |
---|---|
static DatabaseInitializationSettings |
getSettings(SqlInitializationProperties properties)
|
isEmbeddedDatabase, runScripts
afterPropertiesSet, initializeDatabase, setResourceLoader
public SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory, SqlInitializationProperties properties)
SqlDataSourceScriptDatabaseInitializer
instance.connectionFactory
- the primary SQL connection factoryproperties
- the SQL initialization propertiesgetSettings(org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties)
public SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory, DatabaseInitializationSettings settings)
BatchDataSourceScriptDatabaseInitializer
instance.connectionFactory
- the primary SQL connection factorysettings
- the database initialization settingsgetSettings(org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties)
public static DatabaseInitializationSettings getSettings(SqlInitializationProperties properties)
properties
- the SQL initialization propertiesDatabaseInitializationSettings
instanceSqlR2dbcScriptDatabaseInitializer(ConnectionFactory,
DatabaseInitializationSettings)