From 592fa86fab66a8c2d89b7aa45b958be2842f2805 Mon Sep 17 00:00:00 2001 From: Naveed Massjouni Date: Mon, 10 Mar 2014 21:43:08 -0400 Subject: [PATCH] fixed example in the DBIx::Class::Storage::DBI::Replicated synopsis The example in the synopsis does not work. It should be { balancer_type => '::Random' } instead of { balancer => '::Random' } --- lib/DBIx/Class/Storage/DBI/Replicated.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Class/Storage/DBI/Replicated.pm b/lib/DBIx/Class/Storage/DBI/Replicated.pm index 648072c87..3c58716ed 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated.pm @@ -37,7 +37,7 @@ also define your arguments, such as which balancer you want and any arguments that the Pool object should get. my $schema = Schema::Class->clone; - $schema->storage_type( ['::DBI::Replicated', {balancer=>'::Random'}] ); + $schema->storage_type(['::DBI::Replicated', { balancer_type => '::Random' }]); $schema->connection(...); Next, you need to add in the Replicants. Basically this is an array of