6.9.4.4 PooledMySQLConnection.pool_name 属性

句法:

Press CTRL+C to copy
cnx.pool_name

此属性返回连接所属的连接池的名称。

例子:

Press CTRL+C to copy
cnx = cnxpool.get_connection() name = cnx.pool_name