from main_db.base import session def check_health() -> bool: """Check DB connection. """ result = session.execute("SELECT 1").first() return result and result[0] == 1