| Package | Description |
|---|---|
| org.springframework.data.r2dbc.connectionfactory.init |
Provides extensible support for initializing databases through scripts.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeDatabasePopulator
Composite
DatabasePopulator that delegates to a list of given DatabasePopulator implementations,
executing all scripts. |
class |
ResourceDatabasePopulator
Populates, initializes, or cleans up a database using SQL scripts defined in external resources.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeDatabasePopulator.addPopulators(DatabasePopulator... populators)
Add one or more populators to the list of delegates.
|
static reactor.core.publisher.Mono<Void> |
DatabasePopulatorUtils.execute(DatabasePopulator populator,
ConnectionFactory connectionFactory)
Execute the given
DatabasePopulator against the given ConnectionFactory. |
void |
ConnectionFactoryInitializer.setDatabaseCleaner(DatabasePopulator databaseCleaner)
Set the
DatabasePopulator to execute during the bean destruction phase, cleaning up the database and
leaving it in a known state for others. |
void |
ConnectionFactoryInitializer.setDatabasePopulator(DatabasePopulator databasePopulator)
Set the
DatabasePopulator to execute during the bean initialization phase. |
void |
CompositeDatabasePopulator.setPopulators(DatabasePopulator... populators)
Specify one or more populators to delegate to.
|
| Constructor and Description |
|---|
CompositeDatabasePopulator(DatabasePopulator... populators)
Creates a
CompositeDatabasePopulator with the given populators. |
| Constructor and Description |
|---|
CompositeDatabasePopulator(Collection<DatabasePopulator> populators)
Creates a
CompositeDatabasePopulator. with the given populators. |
Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.