-
Notifications
You must be signed in to change notification settings - Fork 8
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
DB interface for mysql, sqlite3 #10
Conversation
Make the repo work by using f.seek(0)
DB interface for mysql, sqlite3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice updates! I like the modularity here.
@@ -218,7 +174,7 @@ def delete_local_backups(dir_path, backup_prefix, backup_extension, verbose = Fa | |||
default=False, | |||
) | |||
args = parser.parse_args() | |||
|
|||
# Loads configuration file from JSON | |||
try: | |||
f=open(args.config_file, 'r') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally one day we should turn all these old style open()
to use context managers with…:
I can't merge due to conflicts. Would you mind doing a rebase off this repo's |
Btw, thanks for all the changes and work on this @divyenduz I'm glad to see that this little project is taking shape and is actually somewhat becoming useful for some! Many thanks 😄 |
hey @mittsh, thanks for the quick code review, appreciate it. I was not able to see any conflicts. I have synced this PR with master branch from the upstream repo as well Can this be merged now ? Thanks :) |
Yes absolutely! 👍 Thanks a lot for the PR. |
This can be initialization of #4
Not very clean right now but later on adding any other DB will be simple implementation of DumpProtocol. That's the vision.
This is just a refactor as of now that retains the functionality.