gitea/models/db
zeripath 4909493a9f
Allow manager logging to set SQL ()
This PR adds a new manager command to switch on SQL logging and to turn it off.

```
gitea manager logging log-sql
gitea manager logging log-sql --off
```

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
install Improve install code to avoid low-level mistakes. ()
paginator Use a struct as test options ()
consistency.go Move issues related files into models/issues ()
context.go Adjust transaction handling via db.Context ()
convert.go Refactor auth package ()
engine.go Allow manager logging to set SQL ()
engine_test.go Move tests as seperate sub packages to reduce duplicated file names ()
error.go Delete related PullAutoMerge and ReviewState on User/Repo Deletion ()
index.go Add more linters to improve code readability ()
list_options.go Add more linters to improve code readability ()
log.go Allow manager logging to set SQL ()
main_test.go Move tests as seperate sub packages to reduce duplicated file names ()
name.go Move user related model into models/user ()
search.go Move user related model into models/user ()
sequence.go Move db related basic functions to models/db ()
sql_postgres_with_schema.go Add more linters to improve code readability ()