# Uses of Class
org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder

Packages that use EmbeddedDatabaseBuilder
Package
Description
org.springframework.jdbc.datasource.embedded
Provides extensible support for creating embedded database instances.

## Uses of EmbeddedDatabaseBuilder in org.springframework.jdbc.datasource.embedded

Methods in org.springframework.jdbc.datasource.embedded that return EmbeddedDatabaseBuilder
Modifier and Type
Method
Description
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`addDefaultScripts()`
Add default SQL scripts to execute to populate the database.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`addScript(String script)`
Add an SQL script to execute to initialize or populate the database.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`addScripts(String... scripts)`
Add multiple SQL scripts to execute to initialize or populate the database.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`continueOnError(boolean flag)`
Specify that all failures which occur while executing SQL scripts should be logged but should not cause a failure.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`generateUniqueName(boolean flag)`
Specify whether a unique ID should be generated and used as the database name.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`ignoreFailedDrops(boolean flag)`
Specify that a failed SQL `DROP` statement within an executed script can be ignored.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setBlockCommentEndDelimiter(String blockCommentEndDelimiter)`
Specify the end delimiter for block comments in all SQL scripts.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setBlockCommentStartDelimiter(String blockCommentStartDelimiter)`
Specify the start delimiter for block comments in all SQL scripts.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setCommentPrefix(String commentPrefix)`
Specify the single-line comment prefix used in all SQL scripts.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setCommentPrefixes(String... commentPrefixes)`
Specify the prefixes that identify single-line comments within all SQL scripts.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setDatabaseConfigurer(EmbeddedDatabaseConfigurer configurer)`
Set the configurer to use to configure the embedded database, as an alternative to `setType(org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType)`.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setDataSourceFactory(DataSourceFactory dataSourceFactory)`
Set the factory to use to create the `DataSource` instance that connects to the embedded database.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setName(String databaseName)`
Set the name of the embedded database.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setScriptEncoding(String scriptEncoding)`
Specify the character encoding used in all SQL scripts, if different from the platform encoding.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setSeparator(String separator)`
Specify the statement separator used in all SQL scripts, if a custom one.
`EmbeddedDatabaseBuilder`
EmbeddedDatabaseBuilder.`setType(EmbeddedDatabaseType databaseType)`
Set the type of embedded database.