MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / get_db_path_mappings

Function get_db_path_mappings

src/cocoindex_code/settings.py:243–248  ·  view source on GitHub ↗

Return the parsed DB path mappings from ``COCOINDEX_CODE_DB_PATH_MAPPING``.

()

Source from the content-addressed store, hash-verified

241
242
243def get_db_path_mappings() -> list[PathMapping]:
244 """Return the parsed DB path mappings from ``COCOINDEX_CODE_DB_PATH_MAPPING``."""
245 global _db_path_mapping # noqa: PLW0603
246 if _db_path_mapping is None:
247 _db_path_mapping = _parse_path_mapping(_ENV_DB_PATH_MAPPING)
248 return list(_db_path_mapping)
249
250
251def get_host_path_mappings() -> list[PathMapping]:

Callers 1

_dispatchFunction · 0.85

Calls 1

_parse_path_mappingFunction · 0.85

Tested by

no test coverage detected