MCPcopy
hub / github.com/crowdsecurity/crowdsec / Scan

Method Scan

pkg/database/ent/meta_query.go:579–585  ·  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

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

Callers 15

IDsMethod · 0.45
runJournalCtlMethod · 0.45
readFileMethod · 0.45
readFileMethod · 0.45
OneShotAcquisitionMethod · 0.45
ReadTailScannerFunction · 0.45
GetParsersCoverageMethod · 0.45
GetScenariosCoverageMethod · 0.45

Calls 3

setContextOpFunction · 0.85
scanWithInterceptorsFunction · 0.85
prepareQueryMethod · 0.45

Tested by

no test coverage detected