forgejo/models/db
Giteabot ecae62837c
Refactor setting.Database.UseXXX to methods (#23354) (#23356)
Backport #23354

Replace #23350.

Refactor `setting.Database.UseMySQL` to
`setting.Database.Type.IsMySQL()`.

To avoid mismatching between `Type` and `UseXXX`.

This refactor can fix the bug mentioned in #23350, so it should be
backported.

Co-authored-by: Jason Song <i@wolfogre.com>
2023-03-07 20:11:44 +08:00
..
install
paginator
common.go Refactor setting.Database.UseXXX to methods (#23354) (#23356) 2023-03-07 20:11:44 +08:00
consistency.go
context.go Move delete user to service (#22478) 2023-02-13 13:11:41 +08:00
context_committer_test.go Fix halfCommitter and WithTx (#22366) 2023-01-09 12:19:19 -05:00
context_test.go
convert.go
engine.go Refactor setting.Database.UseXXX to methods (#23354) (#23356) 2023-03-07 20:11:44 +08:00
engine_test.go
error.go
index.go Refactor setting.Database.UseXXX to methods (#23354) (#23356) 2023-03-07 20:11:44 +08:00
index_test.go
iterate.go
iterate_test.go Use beforeCommit instead of baseCommit (#22949) 2023-02-20 11:56:07 +08:00
list.go Fix db.Find bug (#23115) (#23119) 2023-02-24 14:05:36 +00:00
list_test.go Fix db.Find bug (#23115) (#23119) 2023-02-24 14:05:36 +00:00
log.go
main_test.go
name.go
search.go Show all projects, not just repo projects and open/closed projects (#22640) 2023-02-04 22:35:08 +08:00
sequence.go Refactor setting.Database.UseXXX to methods (#23354) (#23356) 2023-03-07 20:11:44 +08:00
sql_postgres_with_schema.go Fix .golangci.yml (#22868) 2023-02-11 21:44:53 +00:00