spring-framework / org.springframework.jdbc.datasource.init / DatabasePopulatorUtils / execute

execute

open static fun execute(populator: DatabasePopulator, dataSource: DataSource): Unit

Execute the given DatabasePopulator against the given DataSource.

Parameters

populator - the DatabasePopulator to execute

dataSource - the DataSource to execute against

Exceptions

DataAccessException - if an error occurs, specifically a ScriptException