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
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/