def tearDown(self):
        self.generating_connector.close()
        connector = PostgresDatabaseConnector(None, autocommit=True)

        if self.db_name is not None and connector.database_exists(
                self.db_name):
            connector.drop_database(self.db_name)
Esempio n. 2
0
    def tearDownClass(cls):
        cls.index_selection.db_connector.close()

        connector = PostgresDatabaseConnector(None, autocommit=True)

        if connector.database_exists(cls.db_name):
            connector.drop_database(cls.db_name)
    def tearDown(self):
        connector = PostgresDatabaseConnector(None, autocommit=True)

        dbs = [
            "indexselection_tpch___0_001", "indexselection_tpcds___0_001",
            "test_db"
        ]
        for db in dbs:
            if connector.database_exists(db):
                connector.drop_database(db)
 def tearDownClass(cls):
     connector = PostgresDatabaseConnector(None, autocommit=True)
     if connector.database_exists(cls.db_name):
         connector.drop_database(cls.db_name)