MCPcopy Create free account
hub / github.com/evilsocket/pwngrid / Update

Function Update

models/setup.go:32–34  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

30}
31
32func Update(v interface{}) *gorm.DB {
33 return db.Model(v).Update(v)
34}
35
36func UpdateFields(v interface{}, fields map[string]interface{}) *gorm.DB {
37 return db.Model(v).Updates(fields)

Callers 1

unitReportMethod · 0.92

Calls 1

UpdateMethod · 0.80

Tested by

no test coverage detected