MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / cmdHMGET

Function cmdHMGET

hashes.go:171–188  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

169
170 return n, nil
171}
172
173func cmdHMGET(m uhaha.Machine, args []string) (interface{}, error) {
174 if len(args) < 3 {
175 return nil, uhaha.ErrWrongNumArgs
176 }
177
178 keys := make([][]byte, len(args)-2)
179
180 for i := 2; i < len(args); i++ {
181 keys[i-2] = []byte(args[i])
182 }
183
184 v, err := ldb.HMget([]byte(args[1]), keys...)
185 if err != nil {
186 return nil, err
187 }
188
189 return v, nil
190}
191

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected