Class SqlR2dbcScriptDatabaseInitializer
java.lang.Object
org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializer
org.springframework.boot.autoconfigure.sql.init.SqlR2dbcScriptDatabaseInitializer
- All Implemented Interfaces:
Aware
,InitializingBean
,ResourceLoaderAware
@ImportRuntimeHints(org.springframework.boot.autoconfigure.sql.init.SqlInitializationScriptsRuntimeHints.class)
public class SqlR2dbcScriptDatabaseInitializer
extends R2dbcScriptDatabaseInitializer
R2dbcScriptDatabaseInitializer
for the primary SQL database. May be registered
as a bean to override auto-configuration.- Since:
- 2.6.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
AbstractScriptDatabaseInitializer.Scripts
-
Constructor Summary
ConstructorDescriptionSqlR2dbcScriptDatabaseInitializer
(io.r2dbc.spi.ConnectionFactory connectionFactory, SqlInitializationProperties properties) Create a newSqlDataSourceScriptDatabaseInitializer
instance.SqlR2dbcScriptDatabaseInitializer
(io.r2dbc.spi.ConnectionFactory connectionFactory, DatabaseInitializationSettings settings) Create a newBatchDataSourceScriptDatabaseInitializer
instance. -
Method Summary
Methods inherited from class org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializer
isEmbeddedDatabase, runScripts
Methods inherited from class org.springframework.boot.sql.init.AbstractScriptDatabaseInitializer
afterPropertiesSet, initializeDatabase, setResourceLoader
-
Constructor Details
-
SqlR2dbcScriptDatabaseInitializer
public SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory, SqlInitializationProperties properties) Create a newSqlDataSourceScriptDatabaseInitializer
instance.- Parameters:
connectionFactory
- the primary SQL connection factoryproperties
- the SQL initialization properties- See Also:
-
SqlR2dbcScriptDatabaseInitializer
public SqlR2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory, DatabaseInitializationSettings settings) Create a newBatchDataSourceScriptDatabaseInitializer
instance.- Parameters:
connectionFactory
- the primary SQL connection factorysettings
- the database initialization settings- See Also:
-
-
Method Details
-
getSettings
- Parameters:
properties
- the SQL initialization properties- Returns:
- a new
DatabaseInitializationSettings
instance - See Also:
-