def _get_settings(self):
        if any(e in self.engine for e in ['mysql']):
            return MySQLSettings(self.database)
        elif any(e in self.engine for e in ['postgis']):
            return PostgisSQLSettings(self.database)
        elif any(e in self.engine for e in ['postgres']):
            return PostgreSQLSettings(self.database)
        elif any(e in self.engine for e in ['sqlite']):
            return SQLiteSettings(self.database)
        raise Exception('Unknown db engine: ' % self.engine)
Returns the proper settings dictionary.
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/dbcommands.py/DBCommands._get_settings