Use polymorphism for database backup
acatton opened this issue · 0 comments
acatton commented
(I'm creating these issues as note to myself or anybody who wants to work on django-backupdb)
This is kind of nasty. It should use inheritance/polymorphism, and do something like (just the idea):
backend_class = backends[backend_name]
backend = backend_class(**credentials)
backend.do_backup()