-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
'--single-transaction' flag added to mysql backup generation command #373
'--single-transaction' flag added to mysql backup generation command #373
Conversation
Thanks for making this. I think it would be worthwhile to write about this in the documentation that this indeed is happening. Linking to the dba post would be good to do as well. |
@jonathan-s I have updated the PR with a few changes. Could you review these changes? |
Thank you for making an update! Given that Assume that you were using a two different storage engines in mysql and you dumped both databases at the same time. If you included the flag would you get a fatal error? Or would it just ignore the flag for the engine that didn't support it? Lastly, a question regarding ergonomics, right now you've defined it as setting. Given that this flag is something you might want to use on certain supported databases in MySQL would make more sense to put this flag on the command itself? |
I have done a few tests on my local machine and it seems MySQL isn't raising any error or unexpected behavior while using the The rest of your arguments are seemed good to me, will do the necessary changes asap. |
Codecov Report
@@ Coverage Diff @@
## master #373 +/- ##
==========================================
- Coverage 90.87% 90.16% -0.72%
==========================================
Files 19 19
Lines 855 864 +9
Branches 173 176 +3
==========================================
+ Hits 777 779 +2
- Misses 42 47 +5
- Partials 36 38 +2
Continue to review full report at Codecov.
|
Fixes #372