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

Method Scan

app/controlplane/pkg/data/ent/user_query.go:651–657  ·  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

649
650// Scan applies the selector query and scans the result into the given value.
651func (_g *UserGroupBy) Scan(ctx context.Context, v any) error {
652 ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy)
653 if err := _g.build.prepareQuery(ctx); err != nil {
654 return err
655 }
656 return scanWithInterceptors[*UserQuery, *UserGroupBy](ctx, _g.build, _g, _g.build.inters, v)
657}
658
659func (_g *UserGroupBy) sqlScan(ctx context.Context, root *UserQuery, v any) error {
660 selector := root.sqlQuery(ctx).Select()

Callers

nothing calls this directly

Calls 3

setContextOpFunction · 0.85
scanWithInterceptorsFunction · 0.85
prepareQueryMethod · 0.45

Tested by

no test coverage detected