All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testcontainers.delegate.DatabaseDelegate Maven / Gradle / Ivy

There is a newer version: 1.20.4
Show newest version
package org.testcontainers.delegate;

import java.util.Collection;

/**
 * Database delegate
 *
 * Gives an abstraction from concrete database
 */
public interface DatabaseDelegate extends AutoCloseable {
    /**
     * Execute statement by the implementation of the delegate
     */
    void execute(
        String statement,
        String scriptPath,
        int lineNumber,
        boolean continueOnError,
        boolean ignoreFailedDrops
    );

    /**
     * Execute collection of statements
     */
    void execute(Collection statements, String scriptPath, boolean continueOnError, boolean ignoreFailedDrops);

    /**
     * Close connection to the database
     *
     * Overridden to suppress throwing Exception
     */
    @Override
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy