/
NikolayIvkin
/
sqlancer2
Обзор
Документация
Войти
/
NikolayIvkin
/
sqlancer2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sqlancer/DatabaseProvider.java
46 строк
1 KB
Manuel Rigger
Fix JavaDoc issues
21 янв 2021, 01:47
21 янв 2021, 01:47
e118824
Код
Авторство
О чём код?
package sqlancer; import sqlancer.common.log.LoggableFactory; public interface DatabaseProvider<G extends GlobalState<O, ?, C>, O extends DBMSSpecificOptions<?>, C extends SQLancerDBConnection> { /** * Gets the the {@link GlobalState} class. * * @return the class extending {@link GlobalState} */ Class<G> getGlobalStateClass(); /** * Gets the JCommander option class. * * @return the class representing the DBMS-specific options. */ Class<O> getOptionClass(); /** * Generates a single database and executes a test oracle a given number of times. * * @param globalState * the state created and is valid for this method call. * * @throws Exception * if creating the database fails. * */ void generateAndTestDatabase(G globalState) throws Exception; C createDatabase(G globalState) throws Exception; /** * The DBMS name is used to name the log directory and command to test the respective DBMS. * * @return the DBMS' name */ String getDBMSName(); LoggableFactory getLoggableFactory(); StateToReproduce getStateToReproduce(String databaseName); }