- In 1.1:
Returns the size of the connection pool.
- In 1.0:
Returns the size of the connection pool. (read only)
The following outputs the pool's size (the number of connections it can hold):
import mariadb pool = mariadb.ConnectionPool( pool_name = 'pool1', pool_size = 3, pool_reset_connection = False, host = '127.0.0.1', user = 'root', password = 'secret', database = 'test', ) print(pool.pool_size)