def init() -> None: try: # Try to create session to check if DB is awake db = Session() db.execute("SELECT 1") except Exception as e: logger.error(e) raise e
def init() -> None: try: # Try to create session to check if DB is awake db = SessionLocal() db.execute("SELECT 1") logger.success("Backend Services Connected") except Exception as e: logger.error(e) raise e