MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / valueLen

Function valueLen

examples/basic/main.go:164–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func valueLen() {
165 if err := db.View(
166 func(tx *nutsdb.Tx) error {
167 key := []byte("name1")
168 value, err := tx.ValueLen(bucket, key)
169 if err != nil {
170 return err
171 }
172 fmt.Println("value length:", value)
173
174 return nil
175 }); err != nil {
176 log.Println(err)
177 }
178}
179
180func getSet() {
181 if err := db.Update(

Callers 1

mainFunction · 0.85

Calls 2

ViewMethod · 0.80
ValueLenMethod · 0.80

Tested by

no test coverage detected