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