1DBIx::Class::ResultSourUcseePrroCxoyn:t:rTiabbultee(d3D)PBeIrxl::DColcausmse:n:tRaetsiuolntSourceProxy::Table(3)
2
3
4

NAME

6       DBIx::Class::ResultSourceProxy::Table - provides a classdata table
7       object and method proxies
8

SYNOPSIS

10         __PACKAGE__->table('cd');
11         __PACKAGE__->add_columns(qw/cdid artist title year/);
12         __PACKAGE__->set_primary_key('cdid');
13

METHODS

15   add_columns
16         __PACKAGE__->add_columns(qw/cdid artist title year/);
17
18       Adds columns to the current class and creates accessors for them.
19
20   table
21         __PACKAGE__->table('tbl_name');
22
23       Gets or sets the table name.
24
25   has_column
26         if ($obj->has_column($col)) { ... }
27
28       Returns 1 if the class has a column of this name, 0 otherwise.
29
30   column_info
31         my $info = $obj->column_info($col);
32
33       Returns the column metadata hashref for a column. For a description of
34       the various types of column data in this hashref, see "add_column" in
35       DBIx::Class::ResultSource
36
37   columns
38         my @column_names = $obj->columns;
39

AUTHORS

41       Matt S. Trout <mst@shadowcatsystems.co.uk>
42

LICENSE

44       You may distribute this code under the same terms as Perl itself.
45
46
47
48perl v5.12.0                      2010-D0B5I-x1:2:Class::ResultSourceProxy::Table(3)
Impressum