MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Scan

Method Scan

ent/setting_query.go:451–457  ·  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

449
450// Scan applies the selector query and scans the result into the given value.
451func (sgb *SettingGroupBy) Scan(ctx context.Context, v any) error {
452 ctx = setContextOp(ctx, sgb.build.ctx, "GroupBy")
453 if err := sgb.build.prepareQuery(ctx); err != nil {
454 return err
455 }
456 return scanWithInterceptors[*SettingQuery, *SettingGroupBy](ctx, sgb.build, sgb, sgb.build.inters, v)
457}
458
459func (sgb *SettingGroupBy) sqlScan(ctx context.Context, root *SettingQuery, v any) error {
460 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