Skip to content
New issue

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

Use BeginFunc when dealing with database transactions #425

Open
acroca opened this issue May 25, 2023 · 0 comments
Open

Use BeginFunc when dealing with database transactions #425

acroca opened this issue May 25, 2023 · 0 comments

Comments

@acroca
Copy link
Contributor

acroca commented May 25, 2023

When we interact with the database we normally use Begin and then Rollback or Commit when necessary.

In some cases we've missed the 'Rollback' when returning errors, leading to weird situations.

We could make use of BeginFunc to avoid this situation, as it will commit or rollback automatically based on the returned error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant