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

Function SetUnion

cmd/client/set.go:125–139  ·  view source on GitHub ↗
(c *grumble.Context)

Source from the content-addressed store, hash-verified

123}
124
125func SetUnion(c *grumble.Context) error {
126 keys := c.Args.StringList("keys")
127 if len(keys) == 0 {
128 fmt.Println("keys list is empty")
129 return nil
130 }
131
132 union, err := newClient().SUnion(keys)
133 if err != nil {
134 fmt.Println("SUnion data error: ", err)
135 return err
136 }
137 fmt.Println("SUnion result:", union)
138 return nil
139}
140
141func SetInter(c *grumble.Context) error {
142 keys := c.Args.StringList("keys")

Callers

nothing calls this directly

Calls 2

newClientFunction · 0.85
SUnionMethod · 0.65

Tested by

no test coverage detected