spring-framework / org.springframework.jdbc.datasource.embedded / EmbeddedDatabaseBuilder / ignoreFailedDrops

ignoreFailedDrops

open fun ignoreFailedDrops(flag: Boolean): EmbeddedDatabaseBuilder

Specify that a failed SQL DROP statement within an executed script can be ignored.

This is useful for a database whose SQL dialect does not support an IF EXISTS clause in a DROP statement.

The default is false so that building will fail fast if a script starts with a DROP statement.

Parameters

flag - true if failed drop statements should be ignored

Return
this, to facilitate method chaining

Since
4.0.3