mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dd30d9d5c0
The function `GetByBean` has an obvious defect that when the fields are empty values, it will be ignored. Then users will get a wrong result which is possibly used to make a security problem. To avoid the possibility, this PR removed function `GetByBean` and all references. And some new generic functions have been introduced to be used. The recommand usage like below. ```go // if query an object according id obj, err := db.GetByID[Object](ctx, id) // query with other conditions obj, err := db.Get[Object](ctx, builder.Eq{"a": a, "b":b}) ``` |
1 year ago | |
---|---|---|
.. | ||
assignees.go | 1 year ago | |
assignees_test.go | 1 year ago | |
comment.go | 1 year ago | |
comment_code.go | 1 year ago | |
comment_list.go | 1 year ago | |
comment_test.go | 1 year ago | |
content_history.go | 1 year ago | |
content_history_test.go | 1 year ago | |
dependency.go | 1 year ago | |
dependency_test.go | 1 year ago | |
issue.go | 1 year ago | |
issue_index.go | 1 year ago | |
issue_label.go | 1 year ago | |
issue_label_test.go | 1 year ago | |
issue_list.go | 2 years ago | |
issue_list_test.go | 2 years ago | |
issue_lock.go | 1 year ago | |
issue_project.go | 1 year ago | |
issue_search.go | 1 year ago | |
issue_stats.go | 1 year ago | |
issue_test.go | 1 year ago | |
issue_update.go | 1 year ago | |
issue_user.go | 1 year ago | |
issue_user_test.go | 2 years ago | |
issue_watch.go | 1 year ago | |
issue_watch_test.go | 1 year ago | |
issue_xref.go | 1 year ago | |
issue_xref_test.go | 1 year ago | |
label.go | 1 year ago | |
label_test.go | 1 year ago | |
main_test.go | 1 year ago | |
milestone.go | 1 year ago | |
milestone_list.go | 1 year ago | |
milestone_test.go | 1 year ago | |
pull.go | 1 year ago | |
pull_list.go | 1 year ago | |
pull_test.go | 1 year ago | |
reaction.go | 1 year ago | |
reaction_test.go | 1 year ago | |
review.go | 1 year ago | |
review_list.go | 1 year ago | |
review_test.go | 1 year ago | |
stopwatch.go | 1 year ago | |
stopwatch_test.go | 1 year ago | |
tracked_time.go | 1 year ago | |
tracked_time_test.go | 1 year ago |