def drop_all_tables()

in evalbench/databases/sqlite.py [0:0]


    def drop_all_tables(self):
        try:
            result = self.execute(GET_TABLES_SQL)
            tables = [table["name"] for table in result[0]]

            if tables:
                drop_statements = [
                    DROP_TABLE_SQL.format(TABLE=table) for table in tables
                ]
                self.batch_execute(drop_statements)

        except Exception as error:
            logging.error(f"Failed to drop all tables: {error}")