Configure script execution behaviour of embedded database [SPR-8210] #12860
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Ben Sion opened SPR-8210 and commented
It would be very helpful if the EmbeddedDatabaseBuilder could be configured to continue on error or ignore drop statements when executing schema and data scripts. This would simplify the use of the EmbeddedDatabase for use in unit tests (and probably other scenarios).
I have attached a patch for this issue. Basically a new constructor is added to the EmbeddedDatabaseBuilder taking in 2 booleans that configure the underlying DatabasePopulator's ignoreFailedDrops and continueOnError values.
I realise that I could create my own DatabasePopulator and execute the scripts outside of the EmbeddedDatabaseBuilder's initialisation but this seems like a lot of extra lines of code. Please let me know if I can provide more information.
Affects: 3.0.5, 3.1 M1
Attachments:
Issue Links:
The text was updated successfully, but these errors were encountered: