/
NikolayIvkin
/
sqlancer2
Обзор
Документация
Войти
/
NikolayIvkin
/
sqlancer2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sqlancer/SQLGlobalState.java
30 строк
964 B
Patrick
Continuation of Reworking Connection to DB to support non-SQL connections
26 ноя 2020, 15:40
26 ноя 2020, 15:40
62e302e
Код
Авторство
О чём код?
package sqlancer; import sqlancer.common.query.Query; import sqlancer.common.schema.AbstractSchema; /** * Represents a global state that is valid for a testing session on a given database. * * @param <O> * the option parameter * @param <S> * the schema parameter */ public abstract class SQLGlobalState<O extends DBMSSpecificOptions<?>, S extends AbstractSchema<?, ?>> extends GlobalState<O, S, SQLConnection> { @Override protected void executeEpilogue(Query<?> q, boolean success, ExecutionTimer timer) throws Exception { boolean logExecutionTime = getOptions().logExecutionTime(); if (success && getOptions().printSucceedingStatements()) { System.out.println(q.getQueryString()); } if (logExecutionTime) { getLogger().writeCurrent(" -- " + timer.end().asString()); } if (q.couldAffectSchema()) { updateSchema(); } } }