[Catalyst] Documentation for Catalyst::Model::DBIC
Matt S Trout
dbix-class at trout.me.uk
Thu Aug 21 23:32:14 BST 2008
On Tue, Aug 19, 2008 at 02:40:23PM +0530, Terence Monteiro wrote:
> Hello,
>
> I was looking to move connection info from my application's model DBIC
> class to the YAML configuration, but could not find anything in the pod for
> Catalyst::Model::DBIC::Schema. The only code was:
>
> __PACKAGE__->config(
> schema_class => 'MyApp::Schema::FilmDB',
> connect_info => [
> "DBI:...",
> "username",
> "password",
> {AutoCommit => 1}
> ]
> );
>
> 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.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list