-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to pass transaction to be able to rollback a sequence of actions? #14
Comments
I haven't quite been able to come up with a good/elegant solution for this. I'll keep thinking about it as I think it'd be quite valuable to have. I assume you are needing to pass an arbitrary transaction while you're invoking commands? |
Correct. I have prepared a proof of concept about it on this |
Do you have any feedback about it? |
Apologies for the slow reply. We'll need to come up with a way to maintains the agnosticism of the library code while solving your problem. |
I am using the evtstore library in our app and I need a way to pass transaction in knex provider in order to rollback a sequence of actions in our application. Do you have any advice for it? After a small walkthrough in codebase it seems that I need to pass it only in the
append
function of the provider (where exists the only insertion in events table)The text was updated successfully, but these errors were encountered: