DBIx-Poggy

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    ->then(sub { $dbh->do(...) }) ->then(sub { ... }) ->finally($cv);
    $cv->recv; } # $dbh goes out of scope and all queries are done (cuz of
    condvar) # released

METHODS
  new
    Named arguments:

    pool_size
        number of connections to create, creates one more in case all are
        busy

    Returns a new pool object.

  connect
    Takes the same arguments as "connect" in DBI, opens "pool_size"
    connections. Saves connection settings for reuse when pool is exhausted.

  take
    Gives one connection from the pool. Takes arguments:

lib/DBIx/Poggy.pm  view on Meta::CPAN

=head1 METHODS

=head2 new

Named arguments:

=over 4

=item pool_size

number of connections to create, creates one more in case all are busy

=back

Returns a new pool object.

=cut

sub new {
    my $proto = shift;
    my $self = bless { @_ }, ref($proto) || $proto;



( run in 0.239 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )