(ctx context.Context, id db.GraphID)
| 226 | } |
| 227 | |
| 228 | func (d *DB) AllFileMeta(ctx context.Context, id db.GraphID) ([]*db.FileMeta, error) { |
| 229 | fms, err := d.q.AllFileMeta(ctx, string(id)) |
| 230 | if errors.Is(err, sql.ErrNoRows) { |
| 231 | return nil, db.NotExists("graph", id) |
| 232 | } else if err != nil { |
| 233 | return nil, fmt.Errorf("failed to load all file metadata for graph: %w", err) |
| 234 | } |
| 235 | return convSlice(fms, toFileMeta), nil |
| 236 | } |
nothing calls this directly
no test coverage detected