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

Method First

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

Source from the content-addressed store, hash-verified

626}
627
628func (g execG[T]) First(ctx context.Context) (T, error) {
629 var r T
630 err := g.g.apply(ctx).First(&r).Error
631 return r, err
632}
633
634func (g execG[T]) Scan(ctx context.Context, result interface{}) error {
635 var r T

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
FirstMethod · 0.65

Tested by

no test coverage detected