Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 528 | |
| 529 | // Scan applies the selector query and scans the result into the given value. |
| 530 | func (ngb *NodeGroupBy) Scan(ctx context.Context, v any) error { |
| 531 | ctx = setContextOp(ctx, ngb.build.ctx, "GroupBy") |
| 532 | if err := ngb.build.prepareQuery(ctx); err != nil { |
| 533 | return err |
| 534 | } |
| 535 | return scanWithInterceptors[*NodeQuery, *NodeGroupBy](ctx, ngb.build, ngb, ngb.build.inters, v) |
| 536 | } |
| 537 | |
| 538 | func (ngb *NodeGroupBy) sqlScan(ctx context.Context, root *NodeQuery, v any) error { |
| 539 | selector := root.sqlQuery(ctx).Select() |
nothing calls this directly
no test coverage detected