MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _resolve_database_url

Function _resolve_database_url

alembic/env.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def _resolve_database_url() -> str:
20 configured = str(config.get_main_option("sqlalchemy.url") or "").strip()
21 if configured:
22 return configured
23 try:
24 return get_database_url()
25 except Exception:
26 return "sqlite:///data/database.db"
27
28
29def run_migrations_offline() -> None:

Callers 2

run_migrations_offlineFunction · 0.85
run_migrations_onlineFunction · 0.85

Calls 1

get_database_urlFunction · 0.90

Tested by

no test coverage detected