Scan applies the selector query and scans the result into the given value.
(ctx context.Context, v any)
| 576 | |
| 577 | // Scan applies the selector query and scans the result into the given value. |
| 578 | func (ms *MetadataSelect) Scan(ctx context.Context, v any) error { |
| 579 | ctx = setContextOp(ctx, ms.ctx, "Select") |
| 580 | if err := ms.prepareQuery(ctx); err != nil { |
| 581 | return err |
| 582 | } |
| 583 | return scanWithInterceptors[*MetadataQuery, *MetadataSelect](ctx, ms.MetadataQuery, ms, ms.inters, v) |
| 584 | } |
| 585 | |
| 586 | func (ms *MetadataSelect) sqlScan(ctx context.Context, root *MetadataQuery, v any) error { |
| 587 | selector := root.sqlQuery(ctx) |
no test coverage detected