DBIO-PostgreSQL-Async
view release on metacpan or search on metacpan
lib/DBIO/PostgreSQL/Async/Pool.pm view on Meta::CPAN
);
my $pg = $pool->acquire; # get idle connection
$pool->release($pg); # return to pool
my $pg = $pool->acquire_txn; # pinned for transaction
=head1 DESCRIPTION
Connection pool for L<DBIO::PostgreSQL::Async::Storage>. Manages a pool of
L<EV::Pg> 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::Pg
seam â see L</_create_connection>, L</_shutdown_connection> and
L</_transform_conninfo>.
=head1 METHODS
=head2 _create_connection
( run in 0.437 second using v1.01-cache-2.11-cpan-9169edd2b0e )