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

Method Find

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

Source from the content-addressed store, hash-verified

650}
651
652func (g execG[T]) Find(ctx context.Context) ([]T, error) {
653 var r []T
654 err := g.g.apply(ctx).Find(&r).Error
655 return r, err
656}
657
658func (g execG[T]) FindInBatches(ctx context.Context, batchSize int, fc func(data []T, batch int) error) error {
659 var data []T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected