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

Function _normalize_database_url

src/config/settings.py:645–650  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

643
644
645def _normalize_database_url(url: str) -> str:
646 if url.startswith("postgres://"):
647 return "postgresql+psycopg://" + url[len("postgres://"):]
648 if url.startswith("postgresql://"):
649 return "postgresql+psycopg://" + url[len("postgresql://"):]
650 return url
651
652
653def _value_to_string(value: Any) -> str:

Callers 3

init_default_settingsFunction · 0.85
_load_settings_from_dbFunction · 0.85
validate_database_urlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected