(ctx context.Context, batchSize int, fc func(data []T, batch int) error)
| 656 | } |
| 657 | |
| 658 | func (g execG[T]) FindInBatches(ctx context.Context, batchSize int, fc func(data []T, batch int) error) error { |
| 659 | var data []T |
| 660 | return g.g.apply(ctx).FindInBatches(&data, batchSize, func(tx *DB, batch int) error { |
| 661 | return fc(data, batch) |
| 662 | }).Error |
| 663 | } |
| 664 | |
| 665 | func (g execG[T]) Row(ctx context.Context) *sql.Row { |
| 666 | var r T |
nothing calls this directly
no test coverage detected