[Catalyst] Documentation for Catalyst::Model::DBIC

Bogdan Lucaciu bogdan at wiz.ro
Fri Aug 22 02:30:31 BST 2008


On Friday 22 August 2008 01:32:14 Matt S Trout wrote:
> > I could not find any documentation about how to supply a model's
> > configuration parameters in the YAML in Catalyst::Model, since this is
> > generic to all models. I finally found documentation in
> > Catalyst::Model::Adaptor for this, and applied it:
> >
> > Model::DBIC:
> >       schema_class: 'MyApp::Schema::FileDB'
> >       connect_info:
> >               - 'dbi:Pg:dbname=myapp'
> >               - 'postgres'
> >               - ''
> >               - AutoCommit: 1
> >
> > Can I edit the pod for Catalyst::Model::DBIC::Schema with this example
> > and/or Catalyst::Model and send it to the author/documenter?
>
> No.
>
> If you're going to supply an example, it should be .conf (Config::General)
> format, since that's the new default.

I just uploaded Catalyst-Model-DBIC-Schema-0.21 to CPAN, it allows you to use 
just a string as connect_info (if you only want to pass the DSN), and has some 
Config::General conf samples.

Quick peek at the conf samples:
http://dev.catalyst.perl.org/svnweb/Catalyst/revision/?rev=8253

-- 
Bogdan Lucaciu
http://www.wiz.ro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080822/af112fa1/attachment.htm


More information about the Catalyst mailing list