Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 623 | |
| 624 | // Scan applies the selector query and scans the result into the given value. |
| 625 | func (gcs *GitCommitSelect) Scan(ctx context.Context, v any) error { |
| 626 | ctx = setContextOp(ctx, gcs.ctx, ent.OpQuerySelect) |
| 627 | if err := gcs.prepareQuery(ctx); err != nil { |
| 628 | return err |
| 629 | } |
| 630 | return scanWithInterceptors[*GitCommitQuery, *GitCommitSelect](ctx, gcs.GitCommitQuery, gcs, gcs.inters, v) |
| 631 | } |
| 632 | |
| 633 | func (gcs *GitCommitSelect) sqlScan(ctx context.Context, root *GitCommitQuery, v any) error { |
| 634 | selector := root.sqlQuery(ctx) |
no test coverage detected