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

Method Last

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

Source from the content-addressed store, hash-verified

638}
639
640func (g execG[T]) Last(ctx context.Context) (T, error) {
641 var r T
642 err := g.g.apply(ctx).Last(&r).Error
643 return r, err
644}
645
646func (g execG[T]) Take(ctx context.Context) (T, error) {
647 var r T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
LastMethod · 0.65

Tested by

no test coverage detected