语法:
PooledMySQLConnection (cnxpool cnx)
此构造函数接受连接池和连接参数,并返回池连接。它是由MySQLConnectionPool类。
MySQLConnectionPool
参数:
cnxpool:一个MySQLConnectionPool实例。
cnxpool
cnx:一个MySQLConnection实例。
cnx
MySQLConnection
例子:
PCNX = mysql.connector.pooling。PooledMySQLConnection (cnxpool cnx)