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

Method Scan

ent/metadata_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 (ms *MetadataSelect) Scan(ctx context.Context, v any) error {
579 ctx = setContextOp(ctx, ms.ctx, "Select")
580 if err := ms.prepareQuery(ctx); err != nil {
581 return err
582 }
583 return scanWithInterceptors[*MetadataQuery, *MetadataSelect](ctx, ms.MetadataQuery, ms, ms.inters, v)
584}
585
586func (ms *MetadataSelect) sqlScan(ctx context.Context, root *MetadataQuery, v any) error {
587 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