[Catalyst] Configuring Model::DBI::SQL::Library from an yaml file
john utaka
john.utaka at yahoo.com
Fri Mar 9 14:44:10 GMT 2007
Hi all.
I'am trying to configured a Catalyst::Model::DBI::SQL::Library model from a=
YAML file via Catalyst::Plugin::Config::YAML ?
Everythings works perfectly with a:
__PACKAGE__->config(
dsn =3D> 'dbi:Pg:database=3Ddatatest',
user =3D> 'username',
password =3D> 'pass',
options =3D> {},
);
but no way with ( myapp.yml)
Model::DBI::SQL::Library:
dsn: dbi:Pg:dbname=3Ddatatest
user: username
password: pass
options:
AutoCommit: 1
sqlcache: 1
sqlcache_use_mtime: 1
=
=3D log =3D > =
[debug] Couldn't connect to the database "Can't connect to data source
, no database driver specified and DBI_DSN env var not set at
/usr/share/perl5/Catalyst/Model/DBI.pm line 93
< =3D =3D
Please what's wrong with my yaml file ? =
Apologies if it's the best mailinglist for this question
John Utaka =
=
___________________________________________________________________________=
_________
Looking for earth-friendly autos? =
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070309/baf53=
8ae/attachment.htm
More information about the Catalyst
mailing list