GlowSenseAI / test_db.py
Tayyaba11's picture
deploy backend
6e08e39
Raw
History Blame Contribute Delete
339 Bytes
from database import engine
from sqlalchemy import text
try:
with engine.connect() as connection:
result = connection.execute(text("SELECT 1"))
print("\n✅ SUCCESS: Connected to 'glowsense_db' successfully!")
except Exception as e:
print("\n❌ ERROR: Could not connect to database.")
print(f"Details: {e}")