Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.5Mb
PDF (A4) - 4.5Mb


6.9.3.3 MySQLConnectionPool.get_connection() Method

Syntax:

cnxpool.get_connection()

This method returns a connection from the pool, or raises a PoolError if no connections are available.

Example:

cnx = cnxpool.get_connection()