Package org.testcontainers.delegate
Interface DatabaseDelegate
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractDatabaseDelegate
Database delegate
Gives an abstraction from concrete database
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close connection to the database Overridden to suppress throwing Exceptionvoidexecute(String statement, String scriptPath, int lineNumber, boolean continueOnError, boolean ignoreFailedDrops) Execute statement by the implementation of the delegatevoidexecute(Collection<String> statements, String scriptPath, boolean continueOnError, boolean ignoreFailedDrops) Execute collection of statements
-
Method Details
-
execute
void execute(String statement, String scriptPath, int lineNumber, boolean continueOnError, boolean ignoreFailedDrops) Execute statement by the implementation of the delegate -
execute
void execute(Collection<String> statements, String scriptPath, boolean continueOnError, boolean ignoreFailedDrops) Execute collection of statements -
close
void close()Close connection to the database Overridden to suppress throwing Exception- Specified by:
closein interfaceAutoCloseable
-