Spaces:
Sleeping
Sleeping
File size: 447 Bytes
68f9b9e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import sqlite3
import os
db_path = os.path.join("neurosense", "data", "neurosense.db")
if os.path.exists(db_path):
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
tables = cursor.fetchall()
print("Tables in database:")
for table in tables:
print(f"- {table[0]}")
conn.close()
else:
print(f"Database file not found at: {db_path}")
|