feat(so-sync): final round-trip tools and infrastructure fixes
This commit is contained in:
24
inspect_db_schema.py
Normal file
24
inspect_db_schema.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import sqlite3
|
||||
import os
|
||||
|
||||
db_path = "/home/node/clawd/repos/brancheneinstufung2/company-explorer/backend/companies_v3_fixed_2.db"
|
||||
|
||||
if not os.path.exists(db_path):
|
||||
# Fallback to check other potential locations
|
||||
db_path = "/home/node/clawd/repos/brancheneinstufung2/companies_v3_fixed_2.db"
|
||||
|
||||
print(f"--- Inspecting Database: {db_path} ---")
|
||||
|
||||
try:
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("PRAGMA table_info(companies)")
|
||||
columns = cursor.fetchall()
|
||||
|
||||
print("Columns in table 'companies':")
|
||||
for col in columns:
|
||||
print(f"- {col[1]} ({col[2]})")
|
||||
|
||||
conn.close()
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
Reference in New Issue
Block a user