MCPcopy Create free account
hub / github.com/alibaba/GraphScope / switch_context

Function switch_context

python/graphscope/gsctl/impl/utils.py:33–38  ·  view source on GitHub ↗
(context: str, graph_name=None)

Source from the content-addressed store, hash-verified

31
32
33def switch_context(context: str, graph_name=None):
34 config = load_gs_config()
35 current_context = get_current_context()
36 current_context.switch_context(context)
37 current_context.set_graph_name(graph_name)
38 config.update_and_write(current_context)

Callers 4

_globalFunction · 0.90
useFunction · 0.90
_globalFunction · 0.90
useFunction · 0.90

Calls 5

load_gs_configFunction · 0.90
get_current_contextFunction · 0.90
switch_contextMethod · 0.80
set_graph_nameMethod · 0.80
update_and_writeMethod · 0.80

Tested by

no test coverage detected