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

Method Delete

generics.go:564–568  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

562}
563
564func (c chainG[T]) Delete(ctx context.Context) (rowsAffected int, err error) {
565 r := new(T)
566 res := c.g.apply(ctx).Delete(r)
567 return int(res.RowsAffected), res.Error
568}
569
570func (c chainG[T]) Update(ctx context.Context, name string, value any) (rowsAffected int, err error) {
571 var r T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
DeleteMethod · 0.65

Tested by

no test coverage detected