()
| 105 | print(f"Error clearing database: {e}") |
| 106 | |
| 107 | def flush_db(): |
| 108 | check_db_path() |
| 109 | try: |
| 110 | conn = sqlite3.connect(DB_PATH) |
| 111 | cursor = conn.cursor() |
| 112 | cursor.execute('DROP TABLE crawled_data') |
| 113 | conn.commit() |
| 114 | conn.close() |
| 115 | except Exception as e: |
| 116 | print(f"Error flushing database: {e}") |
| 117 | |
| 118 | def update_existing_records(new_column: str = "media", default_value: str = "{}"): |
| 119 | check_db_path() |
nothing calls this directly
no test coverage detected
searching dependent graphs…