{"action":"created","issue":{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/102","labels_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/102/comments","events_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/102/events","html_url":"https://github.com/django-dbbackup/django-dbbackup/issues/102","id":104094106,"number":102,"title":"Remake DBcommand system","user":{"login":"ZuluPro","id":2029180,"avatar_url":"https://avatars.githubusercontent.com/u/2029180?v=3","gravatar_id":"","url":"https://api.github.com/users/ZuluPro","html_url":"https://github.com/ZuluPro","followers_url":"https://api.github.com/users/ZuluPro/followers","following_url":"https://api.github.com/users/ZuluPro/following{/other_user}","gists_url":"https://api.github.com/users/ZuluPro/gists{/gist_id}","starred_url":"https://api.github.com/users/ZuluPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZuluPro/subscriptions","organizations_url":"https://api.github.com/users/ZuluPro/orgs","repos_url":"https://api.github.com/users/ZuluPro/repos","events_url":"https://api.github.com/users/ZuluPro/events{/privacy}","received_events_url":"https://api.github.com/users/ZuluPro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T17:17:49Z","updated_at":"2015-09-01T13:08:41Z","closed_at":null,"body":"I think ``dbbackup.dbcommands`` need to be refactored. It is really painful to work with it, understand, configure and imagine make oneself a new engine.\r\n\r\nWe should make this simpler like storage API. A simple class with followings methods which must be implemented:\r\n- create_backup\r\n- restore_backup\r\n\r\nExample:\r\n```\r\nclass SqliteConnector(BaseConnector):\r\n    def create_backup(self):\r\n        make_it()\r\n\r\n    def restore_backup(self, inputfile):\r\n        resotre(inputfile)\r\n```\r\n\r\nI started to make an example of this concept SQLite and I can make several comments:\r\n- It's so easy to deal with only one simple class inherited\r\n- I use built-in Django connection for Sqlite but Popen can be used to create dump\r\n\r\n@benjaoming, @mjs7231, @others, What do you think about it ? "},"comment":{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/comments/136713806","html_url":"https://github.com/django-dbbackup/django-dbbackup/issues/102#issuecomment-136713806","issue_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/102","id":136713806,"user":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T13:08:41Z","updated_at":"2015-09-01T13:08:41Z","body":"@ZuluPro looking at the test, I get a feeling that you are trying to replace conventional dump and restore tools? Is that so or am I misunderstanding the intentions?"}}