Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 808 | |
| 809 | // Scan applies the selector query and scans the result into the given value. |
| 810 | func (_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 | |
| 818 | func (_s *AlertSelect) sqlScan(ctx context.Context, root *AlertQuery, v any) error { |
| 819 | selector := root.sqlQuery(ctx) |
no test coverage detected