MCPcopy
hub / github.com/andeya/pholcus / Update

Struct Update

common/mgo/update.go:13–18  ·  view source on GitHub ↗

Update updates the first document matching the selector.

Source from the content-addressed store, hash-verified

11
12// Update updates the first document matching the selector.
13type Update struct {
14 Database string // database name
15 Collection string // collection name
16 Selector map[string]interface{} // document selector
17 Change map[string]interface{} // update document
18}
19
20func (u *Update) Exec(_ interface{}) (r result.Result[any]) {
21 defer r.Catch()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected