Improve configurability of EmbeddedDatabaseBuilder

This commit improves the configurability of EmbeddedDatabaseBuilder by
exposing the following new configuration methods.

 - setDataSourceFactory(DataSourceFactory)
 - addScripts(String...)
 - setScriptEncoding(String)
 - setSeparator(String)
 - setCommentPrefix(String)
 - setBlockCommentStartDelimiter(String)
 - setBlockCommentEndDelimiter(String)
 - continueOnError(boolean)
 - ignoreFailedDrops(boolean)

If more fine grained control over the configuration of the embedded
database is required, users are recommended to use
EmbeddedDatabaseFactory with a ResourceDatabasePopulator and forego use
of the builder.

Issue: SPR-11410
This commit is contained in:
Sam Brannen
2014-03-18 23:53:43 +01:00
parent 34fe252acd
commit dc6d67510d
6 changed files with 296 additions and 66 deletions

View File

@@ -0,0 +1,9 @@
{*
these are custom block comments
*}
drop table T_TEST if exists;
{*
these are custom block comments
*}
create table T_TEST (NAME varchar(50) not null);

View File

@@ -0,0 +1,5 @@
~ Failed DROP can be ignored if necessary
drop table T_TEST if exists;
~ Create the test table
create table T_TEST (NAME varchar(50) not null);

View File

@@ -1 +0,0 @@
create table T_TEST (NAME varchar(50) not null);