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

Method Scan

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

623
624// Scan applies the selector query and scans the result into the given value.
625func (gcs *GitCommitSelect) Scan(ctx context.Context, v any) error {
626 ctx = setContextOp(ctx, gcs.ctx, ent.OpQuerySelect)
627 if err := gcs.prepareQuery(ctx); err != nil {
628 return err
629 }
630 return scanWithInterceptors[*GitCommitQuery, *GitCommitSelect](ctx, gcs.GitCommitQuery, gcs, gcs.inters, v)
631}
632
633func (gcs *GitCommitSelect) sqlScan(ctx context.Context, root *GitCommitQuery, v any) error {
634 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