public class SqlDataSourceScriptDatabaseInitializer extends DataSourceScriptDatabaseInitializer
DataSourceScriptDatabaseInitializer
for the primary SQL database. May be
registered as a bean to override auto-configuration.Constructor and Description |
---|
SqlDataSourceScriptDatabaseInitializer(DataSource dataSource,
DatabaseInitializationSettings settings)
Create a new
SqlDataSourceScriptDatabaseInitializer instance. |
SqlDataSourceScriptDatabaseInitializer(DataSource dataSource,
SqlInitializationProperties properties)
Create a new
SqlDataSourceScriptDatabaseInitializer instance. |
Modifier and Type | Method and Description |
---|---|
static DatabaseInitializationSettings |
getSettings(SqlInitializationProperties properties)
|
getDataSource, isEmbeddedDatabase, runScripts
afterPropertiesSet, initializeDatabase, setResourceLoader
public SqlDataSourceScriptDatabaseInitializer(DataSource dataSource, SqlInitializationProperties properties)
SqlDataSourceScriptDatabaseInitializer
instance.dataSource
- the primary SQL data sourceproperties
- the SQL initialization propertiesgetSettings(org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties)
public SqlDataSourceScriptDatabaseInitializer(DataSource dataSource, DatabaseInitializationSettings settings)
SqlDataSourceScriptDatabaseInitializer
instance.dataSource
- the primary SQL data sourcesettings
- the database initialization settingsgetSettings(org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties)
public static DatabaseInitializationSettings getSettings(SqlInitializationProperties properties)
properties
- the SQL initialization propertiesDatabaseInitializationSettings
instanceSqlDataSourceScriptDatabaseInitializer(DataSource,
DatabaseInitializationSettings)