X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FReplicated.pm;h=4514e08ea66465fa518ba6e0556bf66bb001585e;hb=4a607d7a92908915aa427a3c9c73a31943b0bb1e;hp=6408cb4fd2f3ad7b6be77da13941c8c69b428f91;hpb=106d5f3b7e03a68fb2e125772e3f06a34115f22d;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Replicated.pm b/lib/DBIx/Class/Storage/DBI/Replicated.pm index 6408cb4..4514e08 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated.pm @@ -73,6 +73,18 @@ has 'pool_type' => ( }, ); +=head2 pool_args + +Contains a hashref of initialized information to pass to the Pool object. See +L for available arguments. + +=cut + +has 'pool_args' => ( + is=>'ro', + isa=>'HashRef', +); + =head2 balancer_type The replication pool requires a balance class to provider the methods for @@ -258,7 +270,8 @@ Lazy builder for the L attribute. =cut sub _build_pool { - shift->create_pool; + my $self = shift @_; + $self->create_pool($self->pool_args); } =head2 _build_balancer_type