-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Documentation for nested transactions/ savepoints #105
Comments
PR is welcome, there's some minor docs in the TS section of sequelize. |
Googling about how to use savepoints led me to this undocumented feature. From here: https://stackoverflow.com/questions/38069797/easy-way-to-handle-nested-transactions |
Longer form docs would certainly be great, but the JSDoc for Also needed in |
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
Well I am having a different type of issue I am reverting some of my data in one transaction and using the same data to add new in my second transaction, in my scenario I cannot commit after my first transaction because what if my second transaction fails it will have to be reverted Any help |
I believe this holds true for v4 and v5.
The transaction options object can take the key
transaction
which will be set to this.parenthttps://github.com/sequelize/sequelize/blob/v4/lib/transaction.js
That is not reflected in the documentation for transaction, nor any SAVEPOINTing behavior:
http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html#instance-method-transaction
The text was updated successfully, but these errors were encountered: