MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Save

Method Save

shock-server/user/user.go:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func (u *User) Save() (err error) {
131 session := db.Connection.Session.Copy()
132 defer session.Close()
133 c := session.DB(conf.MONGODB_DATABASE).C("Users")
134 _, err = c.Upsert(bson.M{"uuid": u.Uuid}, &u)
135 return
136}

Callers 6

SetMongoInfoMethod · 0.95
ReadMethod · 0.45
IndexTypedRequestFunction · 0.45
AclTypedRequestFunction · 0.45
NewFunction · 0.45
RunVersionUpdatesFunction · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected