Backpropagate Errors on BeforeInsert
, AfterInsert
, BeforeUpdate
, AfterUpdate
... #1924
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1924
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Struct functions:
BeforeInsert
,AfterInsert
,BeforeUpdate
,AfterUpdate
,BeforeLoad
andAfterLoad
are executed but cant return an error.It would be nice if they could return an error by the Insert who called them.
return something like:
BeforeInsert: test
https://github.com/go-gitea/gitea/pull/15157#discussion_r645997674
Backpropagate Errors on `BeforeInsert`, ` AfterInsert`, `BeforeUpdate`, `AfterUpdate`to Backpropagate Errors on `BeforeInsert`, ` AfterInsert`, `BeforeUpdate`, `AfterUpdate` ...