MCPcopy Create free account
hub / github.com/coderminer/restful / Update

Function Update

models/db.go:63–67  ·  view source on GitHub ↗
(db, collection string, query, update interface{})

Source from the content-addressed store, hash-verified

61}
62
63func Update(db, collection string, query, update interface{}) error {
64 ms, c := connect(db, collection)
65 defer ms.Close()
66 return c.Update(query, update)
67}
68
69func Remove(db, collection string, query interface{}) error {
70 ms, c := connect(db, collection)

Callers 1

UpdateMovieMethod · 0.85

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected