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

Method Take

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

Source from the content-addressed store, hash-verified

644}
645
646func (g execG[T]) Take(ctx context.Context) (T, error) {
647 var r T
648 err := g.g.apply(ctx).Take(&r).Error
649 return r, err
650}
651
652func (g execG[T]) Find(ctx context.Context) ([]T, error) {
653 var r []T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
TakeMethod · 0.65

Tested by

no test coverage detected