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 TypeMethodDescriptionvoid
close()
Close connection to the database Overridden to suppress throwing Exceptionvoid
execute
(String statement, String scriptPath, int lineNumber, boolean continueOnError, boolean ignoreFailedDrops) Execute statement by the implementation of the delegatevoid
execute
(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:
close
in interfaceAutoCloseable
-