MCPcopy Index your code
hub / github.com/tanelpoder/0xtools / drop_all

Method drop_all

xtop/core/materializer.py:178–187  ·  view source on GitHub ↗

Drop all materialized tables

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

Calls 2

errorMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected