def new_connection(self): from pyMySQL import MySQL return MySQL.connection(db_name=self._init_str)
def __init__(self, db_name, db_host): from pyMySQL import MySQL self.connection = MySQL.connection(db_name=db_name)