MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / Scan

Method Scan

pkg/database/ent/alert_query.go:810–816  ·  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

808
809// Scan applies the selector query and scans the result into the given value.
810func (_s *AlertSelect) Scan(ctx context.Context, v any) error {
811 ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect)
812 if err := _s.prepareQuery(ctx); err != nil {
813 return err
814 }
815 return scanWithInterceptors[*AlertQuery, *AlertSelect](ctx, _s.AlertQuery, _s, _s.inters, v)
816}
817
818func (_s *AlertSelect) sqlScan(ctx context.Context, root *AlertQuery, v any) error {
819 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