Aggregate returns a StoragePolicySelect configured with the given aggregations.
(fns ...AggregateFunc)
| 445 | |
| 446 | // Aggregate returns a StoragePolicySelect configured with the given aggregations. |
| 447 | func (spq *StoragePolicyQuery) Aggregate(fns ...AggregateFunc) *StoragePolicySelect { |
| 448 | return spq.Select().Aggregate(fns...) |
| 449 | } |
| 450 | |
| 451 | func (spq *StoragePolicyQuery) prepareQuery(ctx context.Context) error { |
| 452 | for _, inter := range spq.inters { |