# Package org.springframework.jdbc.datasource.init

@NonNullApi @NonNullFields package org.springframework.jdbc.datasource.init
Provides extensible support for initializing databases through scripts.

Related Packages
Package
Description
org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
org.springframework.jdbc.datasource.embedded
Provides extensible support for creating embedded database instances.
org.springframework.jdbc.datasource.lookup
Provides a strategy for looking up JDBC DataSources by name.
Class
Description
CannotReadScriptException
Thrown by `ScriptUtils` if an SQL script cannot be read.
CompositeDatabasePopulator
Composite `DatabasePopulator` that delegates to a list of given `DatabasePopulator` implementations, executing all scripts.
DatabasePopulator
Strategy used to populate, initialize, or clean up a database.
DatabasePopulatorUtils
Utility methods for executing a `DatabasePopulator`.
DataSourceInitializer
Used to set up a database during initialization and `clean up` a database during destruction.
ResourceDatabasePopulator
Populates, initializes, or cleans up a database using SQL scripts defined in external resources.
ScriptException
Root of the hierarchy of data access exceptions that are related to processing of SQL scripts.
ScriptParseException
Thrown by `ScriptUtils` if an SQL script cannot be properly parsed.
ScriptStatementFailedException
Thrown by `ScriptUtils` if a statement in an SQL script failed when executing it against the target database.
ScriptUtils
Generic utility methods for working with SQL scripts in conjunction with JDBC.
UncategorizedScriptException
Thrown when we cannot determine anything more specific than "something went wrong while processing an SQL script": for example, a `SQLException` from JDBC that we cannot pinpoint more precisely.