MCPcopy Create free account
hub / github.com/baidu/tera / sync_get

Function sync_get

src/sdk/python/sample.py:97–107  ·  view source on GitHub ↗

sync get

(table)

Source from the content-addressed store, hash-verified

95
96
97def sync_get(table):
98 """ sync get """
99 print("\nsync get")
100 try:
101 print(table.Get("sync", "cf0", "qu0", 0))
102 except TeraSdkException as e:
103 print(e.reason)
104 if "not found" in e.reason:
105 pass
106 else:
107 return
108
109
110def sync_put_batch(table):

Callers 1

mainFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected