Drop all materialized tables
(self)
| 176 | self.conn.execute(f"CREATE INDEX IF NOT EXISTS idx_{table_name}_dev ON {table_name}(dev_maj, dev_min)") |
| 177 | |
| 178 | def drop_all(self): |
| 179 | """Drop all materialized tables""" |
| 180 | for table_name in self.TABLE_NAMES.values(): |
| 181 | try: |
| 182 | self.conn.execute(f"DROP TABLE IF EXISTS {table_name}") |
| 183 | self.logger.info(f"Dropped table {table_name}") |
| 184 | except Exception as e: |
| 185 | self.logger.error(f"Failed to drop table {table_name}: {e}") |
| 186 | |
| 187 | self.is_materialized = False |
| 188 | |
| 189 | def check_tables_exist(self) -> Dict[str, bool]: |
| 190 | """Check which materialized tables exist""" |
no test coverage detected