File: README

package info (click to toggle)
libcatalyst-model-cdbi-perl 0.12-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 88 kB
  • sloc: perl: 107; makefile: 4
file content (41 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
NAME
    Catalyst::Model::CDBI - CDBI Model Class

SYNOPSIS
        # use the helper
        create model CDBI CDBI dsn user password

        # lib/MyApp/Model/CDBI.pm
        package MyApp::Model::CDBI;

        use base 'Catalyst::Model::CDBI';

        __PACKAGE__->config(
            dsn           => 'dbi:Pg:dbname=myapp',
            password      => '',
            user          => 'postgres',
            options       => { AutoCommit => 1 },
            relationships => 1
        );

        1;

        # As object method
        $c->comp('MyApp::Model::CDBI::Table')->search(...);

        # As class method
        MyApp::Model::CDBI::Table->search(...);

DESCRIPTION
    This is the "Class::DBI", "Class::DBI::Loader" model class.

SEE ALSO
    Catalyst, Class::DBI

AUTHOR
    Sebastian Riedel, "sri@cpan.org"

COPYRIGHT
    This program is free software, you can redistribute it and/or modify it
    under the same terms as Perl itself.