Class DbCleaner

java.lang.Object
org.evomaster.client.java.sql.DbCleaner

public class DbCleaner extends Object
Class used to clean/reset the state of the current database
  • Constructor Details

    • DbCleaner

      public DbCleaner()
  • Method Details

    • clearTables

      public static void clearTables(Connection connection, List<String> fullyQualifyingTableNames, org.evomaster.client.java.controller.api.dto.database.schema.DatabaseType type)
    • clearDatabase_Postgres

      public static void clearDatabase_Postgres(Connection connection, String schemaName, List<String> tableToSkip, List<String> tableToClean)
    • clearDatabase_H2

      public static void clearDatabase_H2(Connection connection, List<String> tableToSkip, List<String> tableToClean)
    • clearDatabase_MySQL

      public static void clearDatabase_MySQL(Connection connection, String schemaName, List<String> tablesToSkip, List<String> tableToClean)
    • dropDatabaseTables

      public static void dropDatabaseTables(Connection connection, String schemaName, List<String> tablesToSkip, org.evomaster.client.java.controller.api.dto.database.schema.DatabaseType type)
    • clearDatabase

      public static void clearDatabase(Connection connection, String schemaName, List<String> tableToSkip, List<String> tableToClean, org.evomaster.client.java.controller.api.dto.database.schema.DatabaseType type, boolean doResetSequence)