MCPcopy Create free account
hub / github.com/go-pg/pg / Update

Method Update

orm/query.go:1122–1124  ·  view source on GitHub ↗

Update updates the model.

(scan ...interface{})

Source from the content-addressed store, hash-verified

1120
1121// Update updates the model.
1122func (q *Query) Update(scan ...interface{}) (Result, error) {
1123 return q.update(scan, false)
1124}
1125
1126// Update updates the model omitting fields with zero values such as:
1127// - empty string,

Callers 9

hook_test.goFile · 0.80
ExampleDB_Model_updateFunction · 0.80
db_test.goFile · 0.80
DeleteMethod · 0.80

Calls 1

updateMethod · 0.95