Catalyst::Helper::Model::CDBI::Plain - Helper for CDBI Plain Model


Catalyst-Model-CDBI-Plain documentation Contained in the Catalyst-Model-CDBI-Plain distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::Model::CDBI::Plain - Helper for CDBI Plain Model

SYNOPSIS

Top

    script/create.pl model CDBI CDBI::Plain dsn user password

DESCRIPTION

Top

Help for CDBI Plain Model.

METHODS

mk_compclass

SEE ALSO

Top

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

AUTHOR

Top

Andy Grundman, andy@hybridized.org

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

Top

[% class %] - CDBI Plain Model Component

SYNOPSIS

Top

See [% app %]

DESCRIPTION

Top

CDBI Plain Model Component.

AUTHOR

Top

[% author %]

LICENSE

Top

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;