(ctx context.Context, start, end *time.Time)
| 352 | } |
| 353 | |
| 354 | func (f *fileClient) CountEntityByTimeRange(ctx context.Context, start, end *time.Time) (int, error) { |
| 355 | if start == nil || end == nil { |
| 356 | return f.client.Entity.Query().Count(ctx) |
| 357 | } |
| 358 | |
| 359 | return f.client.Entity.Query().Where(entity.CreatedAtGTE(*start), entity.CreatedAtLT(*end)).Count(ctx) |
| 360 | } |
| 361 | |
| 362 | func (f *fileClient) CountEntityByStoragePolicyID(ctx context.Context, storagePolicyID int) (int, int, error) { |
| 363 | var v []struct { |
nothing calls this directly
no test coverage detected