25 lines
680 B
Python
25 lines
680 B
Python
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}")
|