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

Method Scan

ent/nodeversion_query.go:782–788  ·  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

780
781// Scan applies the selector query and scans the result into the given value.
782func (nvs *NodeVersionSelect) Scan(ctx context.Context, v any) error {
783 ctx = setContextOp(ctx, nvs.ctx, ent.OpQuerySelect)
784 if err := nvs.prepareQuery(ctx); err != nil {
785 return err
786 }
787 return scanWithInterceptors[*NodeVersionQuery, *NodeVersionSelect](ctx, nvs.NodeVersionQuery, nvs, nvs.inters, v)
788}
789
790func (nvs *NodeVersionSelect) sqlScan(ctx context.Context, root *NodeVersionQuery, v any) error {
791 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