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

DB interface for mysql, sqlite3 #10

Merged
merged 6 commits into from
Jan 24, 2017
Merged

DB interface for mysql, sqlite3 #10

merged 6 commits into from
Jan 24, 2017

Conversation

divyenduz
Copy link
Contributor

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.

Copy link
Owner

@mittsh mittsh left a 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')
Copy link
Owner

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…:

@mittsh
Copy link
Owner

mittsh commented Jan 23, 2017

I can't merge due to conflicts. Would you mind doing a rebase off this repo's master @divyenduz ?

@mittsh
Copy link
Owner

mittsh commented Jan 23, 2017

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 😄

@divyenduz
Copy link
Contributor Author

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 :)

@mittsh
Copy link
Owner

mittsh commented Jan 24, 2017

Yes absolutely! 👍 Thanks a lot for the PR.

@mittsh mittsh merged commit 6f9b874 into mittsh:master Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants