MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_all_settings

Function get_all_settings

registry.py:597–614  ·  view source on GitHub ↗

Get all settings as a dictionary. Returns: Dictionary mapping setting keys to values.

()

Source from the content-addressed store, hash-verified

595
596
597def get_all_settings() -> dict[str, str]:
598 """
599 Get all settings as a dictionary.
600
601 Returns:
602 Dictionary mapping setting keys to values.
603 """
604 try:
605 _, SessionLocal = _get_engine()
606 session = SessionLocal()
607 try:
608 settings = session.query(Settings).all()
609 return {s.key: s.value for s in settings}
610 finally:
611 session.close()
612 except Exception as e:
613 logger.warning("Failed to read settings: %s", e)
614 return {}

Callers 3

_get_settings_defaultsFunction · 0.90
get_settingsFunction · 0.90
update_settingsFunction · 0.90

Calls 2

_get_engineFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected