MCPcopy
hub / github.com/NVIDIA/aistore / GetString

Method GetString

dbdriver/bunt.go:96–105  ·  view source on GitHub ↗
(collection, key string)

Source from the content-addressed store, hash-verified

94}
95
96func (bd *BuntDriver) GetString(collection, key string) (string, error) {
97 var value string
98 name := makePath(collection, key)
99 err := bd.driver.View(func(tx *buntdb.Tx) error {
100 var err error
101 value, err = tx.Get(name)
102 return err
103 })
104 return value, buntToCommonErr(err, collection, key)
105}
106
107func (bd *BuntDriver) Delete(collection, key string) error {
108 name := makePath(collection, key)

Callers 1

GetMethod · 0.95

Calls 3

makePathFunction · 0.85
buntToCommonErrFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected