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.
Fix #19513 This PR introduce a new db method `InTransaction(context.Context)`, and also builtin check on `db.TxContext` and `db.WithTx`. There is also a new method `db.AutoTx` has been introduced but could be used by other PRs. `WithTx` will always open a new transaction, if a transaction exist in context, return an error. `AutoTx` will try to open a new transaction if no transaction exist in context. That means it will always enter a transaction if there is no error. Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: 6543 <6543@obermui.de> |
2 years ago | |
---|---|---|
.. | ||
activitypub | 2 years ago | |
analyze | 3 years ago | |
auth | 3 years ago | |
avatar | 2 years ago | |
base | 2 years ago | |
cache | 2 years ago | |
charset | 2 years ago | |
container | 2 years ago | |
context | 2 years ago | |
convert | 2 years ago | |
csv | 2 years ago | |
doctor | 2 years ago | |
emoji | 2 years ago | |
eventsource | 3 years ago | |
generate | ||
git | 2 years ago | |
gitgraph | 2 years ago | |
graceful | 2 years ago | |
hcaptcha | ||
highlight | 2 years ago | |
hostmatcher | 2 years ago | |
html | 2 years ago | |
httpcache | 3 years ago | |
httplib | ||
indexer | 2 years ago | |
issue/template | 2 years ago | |
json | 3 years ago | |
lfs | 3 years ago | |
log | 2 years ago | |
markup | 2 years ago | |
mcaptcha | 2 years ago | |
metrics | 3 years ago | |
migration | 2 years ago | |
mirror | 3 years ago | |
nosql | 2 years ago | |
notification | 2 years ago | |
options | 2 years ago | |
packages | 2 years ago | |
paginator | 2 years ago | |
password | ||
pprof | 2 years ago | |
private | 2 years ago | |
process | 3 years ago | |
proxy | ||
proxyprotocol | 3 years ago | |
public | 2 years ago | |
queue | 2 years ago | |
recaptcha | 2 years ago | |
references | 2 years ago | |
regexplru | 3 years ago | |
repository | 2 years ago | |
secret | ||
session | ||
setting | 2 years ago | |
sitemap | 3 years ago | |
ssh | 3 years ago | |
storage | 2 years ago | |
structs | 2 years ago | |
svg | 2 years ago | |
sync | 2 years ago | |
system | 2 years ago | |
templates | 2 years ago | |
test | 3 years ago | |
timeutil | 2 years ago | |
translation | 2 years ago | |
typesniffer | 3 years ago | |
updatechecker | 2 years ago | |
upload | ||
uri | ||
user | ||
util | 2 years ago | |
validation | 2 years ago | |
watcher | 2 years ago | |
web | 2 years ago |