DBIO-MySQL-Async
view release on metacpan or search on metacpan
lib/DBIO/MySQL/Async/Pool.pm view on Meta::CPAN
);
my $mdb = $pool->acquire; # get idle connection
$pool->release($mdb); # return to pool
my $mdb = $pool->acquire_txn; # pinned for transaction
=head1 DESCRIPTION
Connection pool for L<DBIO::MySQL::Async::Storage>. Manages a pool of
L<EV::MariaDB> connections, dispatching queries to available connections
and queuing when all are busy.
The acquire / release / capacity / shutdown mechanics are inherited from
L<DBIO::Storage::PoolBase>; this class supplies only the EV::MariaDB
seam â see L</_create_connection> and L</_shutdown_connection>.
=head1 METHODS
=head2 _create_connection
Builds one L<EV::MariaDB> connection from the (already-transformed)
( run in 0.473 second using v1.01-cache-2.11-cpan-9169edd2b0e )