DBIx-Connector-Retry
view release on metacpan or search on metacpan
lib/DBIx/Connector/Retry.pm view on Meta::CPAN
use version;
our $VERSION = 'v0.900.3'; # VERSION
use strict;
use warnings;
use Moo;
extends 'DBIx::Connector', 'Moo::Object';
use Scalar::Util qw( weaken );
use Types::Standard qw( Str Bool HashRef CodeRef Dict Tuple Optional Maybe );
use Types::Common::Numeric qw( PositiveInt );
use namespace::clean; # don't export the above
#pod =encoding utf8
#pod
#pod =head1 SYNOPSIS
#pod
#pod my $conn = DBIx::Connector::Retry->new(
lib/DBIx/Connector/Retry.pm view on Meta::CPAN
my $base_obj = DBIx::Connector->new(@connect_args);
%$self = (
%$base_obj,
%$self, # $self's existing attributes take priority
);
# DBIx::Connector stores connection details in a coderef (for some reason). Instead
# of just dumping the same arguments as another copy, we'll tie it directly to the
# attr. If connect_info ever changes, it will grab the latest version.
$self->{_args} = sub { @{ $self->connect_info } };
weaken $self; # circular closure ref
}
#pod =head1 MODIFIED METHODS
#pod
#pod =head2 run / txn
#pod
#pod my @result = $conn->run($mode => $coderef);
#pod my $result = $conn->run($mode => $coderef);
#pod $conn->run($mode => $coderef);
#pod
( run in 0.342 second using v1.01-cache-2.11-cpan-65fba6d93b7 )