We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some of the database logic is not wrapped into a transaction in crud.go, for example, https://github.com/checkr/flagr/blob/848bcf07b8ff4f6a4a056794d521c62535b2e3b8/pkg/handler/crud.go#L424
Ideally, all the database logic of a request can be wrapped into a transaction to avoid data corruption.
Use db.Transaction(func(tx *gorm.DB) error { https://gorm.io/docs/transactions.html#Transactions
db.Transaction(func(tx *gorm.DB) error {
The text was updated successfully, but these errors were encountered:
Stale issue message
Sorry, something went wrong.
No branches or pull requests
Some of the database logic is not wrapped into a transaction in crud.go, for example, https://github.com/checkr/flagr/blob/848bcf07b8ff4f6a4a056794d521c62535b2e3b8/pkg/handler/crud.go#L424
Expected Behavior
Ideally, all the database logic of a request can be wrapped into a transaction to avoid data corruption.
Current Behavior
Possible Solution
Use
db.Transaction(func(tx *gorm.DB) error {
https://gorm.io/docs/transactions.html#Transactions
The text was updated successfully, but these errors were encountered: