MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / get_engine

Function get_engine

enterprise/scripts/standalone_server.py:85–90  ·  view source on GitHub ↗
(db_url: str)

Source from the content-addressed store, hash-verified

83
84
85def get_engine(db_url: str):
86 global _engine, _SessionLocal
87 if _engine is None:
88 _engine = create_engine(db_url)
89 _SessionLocal = sessionmaker(bind=_engine)
90 return _engine, _SessionLocal
91
92
93@app.get('/')

Callers 4

get_conversation_statsFunction · 0.70
list_conversationsFunction · 0.70
list_organizationsFunction · 0.70
get_organizationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected