forgejo/models/repo
delvh 778ad795fd
Refactor deletion (#28610)
Introduce the new generic deletion methods
- `func DeleteByID[T any](ctx context.Context, id int64) (int64, error)`
- `func DeleteByIDs[T any](ctx context.Context, ids ...int64) error`
- `func Delete[T any](ctx context.Context, opts FindOptions) (int64,
error)`

So, we no longer need any specific deletion method and can just use
the generic ones instead.

Replacement of #28450

Closes #28450

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-12-25 21:25:29 +01:00
..
archiver.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
attachment.go
attachment_test.go
avatar.go
collaboration.go
collaboration_test.go
fork.go
fork_test.go
git.go
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
pushmirror_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
redirect.go
redirect_test.go
release.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
release_test.go
repo.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
repo_indexer.go
repo_list.go
repo_list_test.go
repo_test.go Refactor SSH clone URL generation code (#28421) 2023-12-15 06:18:12 +00:00
repo_unit.go
repo_unit_test.go
search.go
star.go
star_test.go
topic.go Add orphaned topic consistency check (#28507) 2023-12-18 15:32:08 +00:00
topic_test.go
update.go
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
user_repo.go
user_repo_test.go
watch.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
watch_test.go
wiki.go
wiki_test.go