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

Function get_datasource_by_id

python/graphscope/gsctl/impl/datasource.py:49–55  ·  view source on GitHub ↗
(graph_identifier: str)

Source from the content-addressed store, hash-verified

47
48
49def get_datasource_by_id(graph_identifier: str) -> SchemaMapping:
50 context = get_current_context()
51 with graphscope.flex.rest.ApiClient(
52 graphscope.flex.rest.Configuration(context.coordinator_endpoint)
53 ) as api_client:
54 api_instance = graphscope.flex.rest.DataSourceApi(api_client)
55 return api_instance.get_datasource_by_id(graph_identifier)
56
57
58def unbind_vertex_datasource(graph_identifier: str, vertex_type: str) -> str:

Callers 6

lsFunction · 0.90
lsFunction · 0.90
lsFunction · 0.90
lsFunction · 0.90
test_dataloadingMethod · 0.90
test_bulk_loadingMethod · 0.90

Calls 3

get_current_contextFunction · 0.90
get_datasource_by_idMethod · 0.80
ConfigurationMethod · 0.45

Tested by 2

test_dataloadingMethod · 0.72
test_bulk_loadingMethod · 0.72