MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Scan

Method Scan

app/controlplane/pkg/data/ent/group_query.go:699–705  ·  view source on GitHub ↗

Scan applies the selector query and scans the result into the given value.

(ctx context.Context, v any)

Source from the content-addressed store, hash-verified

697
698// Scan applies the selector query and scans the result into the given value.
699func (_s *GroupSelect) Scan(ctx context.Context, v any) error {
700 ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect)
701 if err := _s.prepareQuery(ctx); err != nil {
702 return err
703 }
704 return scanWithInterceptors[*GroupQuery, *GroupSelect](ctx, _s.GroupQuery, _s, _s.inters, v)
705}
706
707func (_s *GroupSelect) sqlScan(ctx context.Context, root *GroupQuery, v any) error {
708 selector := root.sqlQuery(ctx)

Callers 1

IDsMethod · 0.45

Calls 3

setContextOpFunction · 0.85
scanWithInterceptorsFunction · 0.85
prepareQueryMethod · 0.45

Tested by

no test coverage detected