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

Method show

python/graphscope/gsctl/utils.py:320–337  ·  view source on GitHub ↗
(self, graph_identifier=None, stdout=False, sorting=False)

Source from the content-addressed store, hash-verified

318 )
319
320 def show(self, graph_identifier=None, stdout=False, sorting=False):
321 if graph_identifier is not None:
322 # specific graph
323 schema_tree = self.tree.subtree(f"{graph_identifier}_schema")
324 click.secho(schema_tree.show(stdout=False, sorting=False))
325 datasource_tree = self.tree.subtree(f"{graph_identifier}_datasource")
326 click.secho(datasource_tree.show(stdout=False, sorting=False))
327 try:
328 stored_procedure_tree = self.tree.subtree(
329 f"{graph_identifier}_stored_procedure"
330 )
331 except: # noqa: E722, B110
332 # for storage or engine doesn't support stored procedure
333 pass
334 else:
335 click.secho(stored_procedure_tree.show(stdout=False, sorting=False))
336 else:
337 click.secho(self.tree.show(stdout=stdout, sorting=sorting))

Callers 4

lsFunction · 0.95
lsFunction · 0.95
lsFunction · 0.95
lsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected