MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / Scan

Method Scan

ent/gitcommit_query.go:577–583  ·  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

575
576// Scan applies the selector query and scans the result into the given value.
577func (gcgb *GitCommitGroupBy) Scan(ctx context.Context, v any) error {
578 ctx = setContextOp(ctx, gcgb.build.ctx, ent.OpQueryGroupBy)
579 if err := gcgb.build.prepareQuery(ctx); err != nil {
580 return err
581 }
582 return scanWithInterceptors[*GitCommitQuery, *GitCommitGroupBy](ctx, gcgb.build, gcgb, gcgb.build.inters, v)
583}
584
585func (gcgb *GitCommitGroupBy) sqlScan(ctx context.Context, root *GitCommitQuery, v any) error {
586 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