• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Catalyst/H09-Feb-2010-292107

t/H09-Feb-2010-2516

ChangesH A D09-Feb-20101.1 KiB4331

MANIFESTH A D09-Feb-2010165 1110

META.ymlH A D09-Feb-2010619 2625

Makefile.PLH A D09-Feb-2010351 1412

READMEH A D30-Jul-2009957 4229

README

1NAME
2    Catalyst::Model::CDBI - CDBI Model Class
3
4SYNOPSIS
5        # use the helper
6        create model CDBI CDBI dsn user password
7
8        # lib/MyApp/Model/CDBI.pm
9        package MyApp::Model::CDBI;
10
11        use base 'Catalyst::Model::CDBI';
12
13        __PACKAGE__->config(
14            dsn           => 'dbi:Pg:dbname=myapp',
15            password      => '',
16            user          => 'postgres',
17            options       => { AutoCommit => 1 },
18            relationships => 1
19        );
20
21        1;
22
23        # As object method
24        $c->comp('MyApp::Model::CDBI::Table')->search(...);
25
26        # As class method
27        MyApp::Model::CDBI::Table->search(...);
28
29DESCRIPTION
30    This is the "Class::DBI", "Class::DBI::Loader" model class.
31
32SEE ALSO
33    Catalyst, Class::DBI
34
35AUTHOR
36    Sebastian Riedel, "sri@cpan.org"
37
38COPYRIGHT
39    This program is free software, you can redistribute it and/or modify it
40    under the same terms as Perl itself.
41
42