MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / Scan

Method Scan

ent/node_query.go:530–536  ·  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

528
529// Scan applies the selector query and scans the result into the given value.
530func (ngb *NodeGroupBy) Scan(ctx context.Context, v any) error {
531 ctx = setContextOp(ctx, ngb.build.ctx, "GroupBy")
532 if err := ngb.build.prepareQuery(ctx); err != nil {
533 return err
534 }
535 return scanWithInterceptors[*NodeQuery, *NodeGroupBy](ctx, ngb.build, ngb, ngb.build.inters, v)
536}
537
538func (ngb *NodeGroupBy) sqlScan(ctx context.Context, root *NodeQuery, v any) error {
539 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