from pymysqlpool import connection
def connection_pool(self):
'''
建立连接池
:return: 连接池
'''
pool = connection.MySQLConnectionPool(**self.config_database)
pool.connect()
return pool
from pymysqlpool import connection
def connection_pool(self):
'''
建立连接池
:return: 连接池
'''
pool = connection.MySQLConnectionPool(**self.config_database)
pool.connect()
return pool