(ctx context.Context, afterID, limit int)
| 335 | } |
| 336 | |
| 337 | func (f *fileClient) ListIndexableFiles(ctx context.Context, afterID, limit int) ([]*ent.File, error) { |
| 338 | q := f.indexableFilesQuery() |
| 339 | if afterID > 0 { |
| 340 | q = q.Where(file.IDGT(afterID)) |
| 341 | } |
| 342 | return q.Limit(limit).All(ctx) |
| 343 | } |
| 344 | |
| 345 | func (f *fileClient) indexableFilesQuery() *ent.FileQuery { |
| 346 | return f.client.File.Query().Where( |
nothing calls this directly
no test coverage detected