Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 577 | |
| 578 | // Scan applies the selector query and scans the result into the given value. |
| 579 | func (_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 | |
| 587 | func (_s *MetaSelect) sqlScan(ctx context.Context, root *MetaQuery, v any) error { |
| 588 | selector := root.sqlQuery(ctx) |
no test coverage detected