MCPcopy
hub / github.com/go-gorm/gorm / Updates

Method Updates

generics.go:576–579  ·  view source on GitHub ↗
(ctx context.Context, t T)

Source from the content-addressed store, hash-verified

574}
575
576func (c chainG[T]) Updates(ctx context.Context, t T) (rowsAffected int, err error) {
577 res := c.g.apply(ctx).Updates(t)
578 return int(res.RowsAffected), res.Error
579}
580
581func (c chainG[T]) Count(ctx context.Context, column string) (result int64, err error) {
582 var r T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
UpdatesMethod · 0.65

Tested by

no test coverage detected