AsyncMysqlConnectionPool

The AsyncMysqlConnectionPool class

This class provides a mechanism to create a pool of connections to a MySQL client that can be utilized and reused as needed.

When a client requests a connection from the pool, it may get one that already exists; this avoids the overhead of establishing a new connection.

This is the highly recommended way to create connections to a MySQL client, as opposed to using the AsyncMysqlClient class which does not give you nearly the flexibility. In fact, there is discussion about deprecating the AsyncMysqlClient class all together.

Interface synopsis

class AsyncMysqlConnectionPool {...}