cnxpool.add_connection(cnx = None)
This method adds a new or existing
MySQLConnection to the pool, or raises a
PoolError if the pool is full.
MySQLConnection object to be added to the
pool. If this argument is missing, the pool creates a new
connection and adds it.
cnxpool.add_connection() # add new connection to pool cnxpool.add_connection(cnx) # add existing connection to pool
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices