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

Method Scan

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

576
577// Scan applies the selector query and scans the result into the given value.
578func (ns *NodeSelect) Scan(ctx context.Context, v any) error {
579 ctx = setContextOp(ctx, ns.ctx, "Select")
580 if err := ns.prepareQuery(ctx); err != nil {
581 return err
582 }
583 return scanWithInterceptors[*NodeQuery, *NodeSelect](ctx, ns.NodeQuery, ns, ns.inters, v)
584}
585
586func (ns *NodeSelect) sqlScan(ctx context.Context, root *NodeQuery, v any) error {
587 selector := root.sqlQuery(ctx)

Callers 11

IDsMethod · 0.45
HasIndexMethod · 0.45
HasTableMethod · 0.45
HasColumnMethod · 0.45
CurrentDatabaseMethod · 0.45
HasIndexMethod · 0.45
HasTableMethod · 0.45
HasColumnMethod · 0.45
CurrentDatabaseMethod · 0.45
offsetPaginationMethod · 0.45

Calls 3

setContextOpFunction · 0.85
scanWithInterceptorsFunction · 0.85
prepareQueryMethod · 0.45

Tested by

no test coverage detected