gitea/models/db
Jason Song c84238800b
Refactor setting.Database.UseXXX to methods (#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.
2023-03-07 18:51:06 +08:00
..
install Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
paginator Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
common.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
consistency.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
context_committer_test.go Fix halfCommitter and WithTx (#22366) 2023-01-09 12:19:19 -05:00
context_test.go Always reuse transaction (#22362) 2023-01-08 09:34:58 +08:00
context.go Remove all package data after tests (#22984) 2023-02-23 22:11:56 +08:00
convert.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
engine_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2022-12-23 19:35:43 +08:00
engine.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
error.go Always reuse transaction (#22362) 2023-01-08 09:34:58 +08:00
index_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
index.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
iterate_test.go Use beforeCommit instead of baseCommit (#22949) 2023-02-20 11:56:07 +08:00
iterate.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
list_test.go Fix db.Find bug (#23115) 2023-02-24 21:17:09 +08:00
list.go Fix db.Find bug (#23115) 2023-02-24 21:17:09 +08:00
log.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
name.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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) 2023-03-07 18:51:06 +08:00
sql_postgres_with_schema.go Fix .golangci.yml (#22868) 2023-02-11 21:44:53 +00:00