Exemple #1
0
 def new_connection(self):
     from pyMySQL import MySQL
     return MySQL.connection(db_name=self._init_str)
Exemple #2
0
 def __init__(self, db_name, db_host):
     from pyMySQL import MySQL
     self.connection = MySQL.connection(db_name=db_name)
Exemple #3
0
 def __init__(self, db_name, db_host):
     from pyMySQL import MySQL
     self.connection = MySQL.connection(db_name=db_name)