MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / stringAppend

Function stringAppend

cmd/client/string.go:105–115  ·  view source on GitHub ↗
(c *grumble.Context)

Source from the content-addressed store, hash-verified

103}
104
105func stringAppend(c *grumble.Context) error {
106 key := c.Args.String("key")
107 value := c.Args.String("value")
108 err := newClient().Append(key, value)
109 if err != nil {
110 fmt.Println("Append failed")
111 return err
112 }
113 fmt.Println("Append is successful")
114 return nil
115}
116
117func stringIncr(c *grumble.Context) error {
118 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
AppendMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected