| Catalyst-Model-CDBI-Plain documentation | Contained in the Catalyst-Model-CDBI-Plain distribution. |
Catalyst::Helper::Model::CDBI::Plain - Helper for CDBI Plain Model
script/create.pl model CDBI CDBI::Plain dsn user password
Help for CDBI Plain Model.
Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper
Andy Grundman, andy@hybridized.org
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
[% class %] - CDBI Plain Model Component
See [% app %]
CDBI Plain Model Component.
[% author %]
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
| Catalyst-Model-CDBI-Plain documentation | Contained in the Catalyst-Model-CDBI-Plain distribution. |
package Catalyst::Helper::Model::CDBI::Plain; use strict;
sub mk_compclass { my ( $self, $helper, $dsn, $user, $pass ) = @_; $helper->{dsn} = $dsn || ''; $helper->{user} = $user || ''; $helper->{pass} = $pass || ''; my $file = $helper->{file}; $helper->render_file( 'compclass', $file ); }
1; __DATA__ __compclass__ package [% class %]; use strict; use base 'Catalyst::Model::CDBI::Plain'; __PACKAGE__->connection('[% dsn %]', '[% user %]', '[% pass %]');
1;