Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
ensure_database
codeintel.runtime.ensure_database
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 |
|---|---|---|
| session_scope | runtime.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| runtime | runtime.py | same file |
codeintel.runtime.ensure_databasebackend/app/codeintel/runtime.py, lines 15–18Open source
def ensure_database() -> None: if database.SessionLocal is None: settings = get_settings() database.init_database(settings.get_database_url(), settings.ENV)What the index recorded
- Signature
def ensure_database() -> None:- File
backend/app/codeintel/runtime.py- Lines
- 15–18
- Parser
- python-ast
- Git blob
fed1898d663066d415ffd4749246534627ef28d6- Call sites
- 3 named, 3 resolved, 0 left unlinked
- Outside this subset
- 3 more edges reach code outside the graph shown here
