It would seem there's a coercion for the synopsis syntax. So, I'm not clear
if I'm using it incorrectly or if there's a problem.
So, if I take the SYNOPSIS example:
my %data = (
traits => ['Replicated'],
connect_info =>
['dbi:mysql:master', 'user', 'pass'],
replicants => [
['dbi:mysql:slave1', 'user', 'pass'],
['dbi:mysql:slave2', 'user', 'pass'],
['dbi:mysql:slave3', 'user', 'pass'],
],
balancer_args => {
master_read_weight => 0.3
}
);
and convert to YAML:
balancer_args:
master_read_weight: 0.3
connect_info:
- dbi:mysql:master
- user
- pass
replicants:
-
- dbi:mysql:slave1
- user
- pass
-
- dbi:mysql:slave2
- user
- pass
-
- dbi:mysql:slave3
- user
- pass
traits:
- Replicated
Then try with my actual YAML:
balancer_args:
master_read_weight: 0.3
connect_info:
- dbi:Pg:dbname=test
-
-
replicants:
-
- dbi:Pg:dbname=slave
-
-
traits:
- Replicated
Use of uninitialized value $driver in concatenation (.) or string at
/usr/local/share/perl/5.10.0/DBIx/Class/Storage/DBI.pm line 935.
DBIx::Class::Storage::throw_exception(): Can't locate
DBIx/Class/Storage/DBI/.pm in @INC
The hash-base connect_info works fine.
--
Bill Moseley
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/