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

Run all hooks within transactions #27

Open
overlookmotel opened this issue Sep 10, 2015 · 1 comment
Open

Run all hooks within transactions #27

overlookmotel opened this issue Sep 10, 2015 · 1 comment

Comments

@overlookmotel
Copy link
Owner

All hooks should run within a transaction, and create a new transaction if none exists already.

@overlookmotel
Copy link
Owner Author

All hook code should run within a transaction along with the main sequelize code (if this is possible with current Sequelize hooks API).

Problem is that with the hooks, an action runs multiple SQL statements, but consistency cannot be guaranteed.

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

No branches or pull requests

1 participant