Download scripts/utils/check_schema.py from techprotrade/annator-full-system: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/check_schema.py
- Command line
-
hf download hf://spaces/techprotrade/annator-full-system/scripts/utils/check_schema.py
-
curl -L -o check_schema.py https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/check_schema.py
519 Bytes
| import sqlite3 | |
| import os | |
| # Assuming default dev DB | |
| db_path = "backend/atom_dev.db" | |
| if not os.path.exists(db_path): | |
| # Try alternate location if widely used | |
| db_path = "atom_dev.db" | |
| print(f"Checking DB: {db_path}") | |
| try: | |
| conn = sqlite3.connect(db_path) | |
| cursor = conn.cursor() | |
| cursor.execute("PRAGMA table_info(users)") | |
| columns = cursor.fetchall() | |
| print("Columns in 'users' table:") | |
| for col in columns: | |
| print(col) | |
| conn.close() | |
| except Exception as e: | |
| print(f"Error: {e}") | |