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

Method Scan

app/controlplane/pkg/data/ent/user_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 *UserSelect) 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[*UserQuery, *UserSelect](ctx, _s.UserQuery, _s, _s.inters, v)
705}
706
707func (_s *UserSelect) sqlScan(ctx context.Context, root *UserQuery, v any) error {
708 selector := root.sqlQuery(ctx)

Callers 15

ParseFunction · 0.45
TryAcquireMethod · 0.45
RunsByStatusTotalMethod · 0.45
RunsByRunnerTypeTotalMethod · 0.45
DailyRunsCountMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45

Calls 3

setContextOpFunction · 0.85
scanWithInterceptorsFunction · 0.85
prepareQueryMethod · 0.45

Tested by

no test coverage detected