Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 697 | |
| 698 | // Scan applies the selector query and scans the result into the given value. |
| 699 | func (_s *UserSelect) Scan(ctx context.Context, v any) error { |
| 700 | ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) |
| 701 | if err := _s.prepareQuery(ctx); err != nil { |
| 702 | return err |
| 703 | } |
| 704 | return scanWithInterceptors[*UserQuery, *UserSelect](ctx, _s.UserQuery, _s, _s.inters, v) |
| 705 | } |
| 706 | |
| 707 | func (_s *UserSelect) sqlScan(ctx context.Context, root *UserQuery, v any) error { |
| 708 | selector := root.sqlQuery(ctx) |
no test coverage detected