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

Method Scan

generics.go:634–638  ·  view source on GitHub ↗
(ctx context.Context, result interface{})

Source from the content-addressed store, hash-verified

632}
633
634func (g execG[T]) Scan(ctx context.Context, result interface{}) error {
635 var r T
636 err := g.g.apply(ctx).Model(r).Find(result).Error
637 return err
638}
639
640func (g execG[T]) Last(ctx context.Context) (T, error) {
641 var r T

Callers

nothing calls this directly

Calls 3

ModelMethod · 0.80
applyMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected