Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
session_scope
codeintel.runtime.session_scope
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| ensure_database | runtime.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| build_mcp_server | native_server.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| runtime | runtime.py | same file |
codeintel.runtime.session_scopebackend/app/codeintel/runtime.py, lines 21–28Open source
@contextmanagerdef session_scope() -> Iterator[Session]: ensure_database() session = database.SessionLocal() try: yield session finally: session.close()What the index recorded
- Signature
def session_scope() -> Iterator[Session]:- File
backend/app/codeintel/runtime.py- Lines
- 21–28
- Parser
- python-ast
- Git blob
fed1898d663066d415ffd4749246534627ef28d6- Call sites
- 3 named, 1 resolved, 2 left unlinked
- Outside this subset
- 17 more edges reach code outside the graph shown here
