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   table_class
26         __PACKAGE__->table_class('DBIx::Class::ResultSource::Table');
27
28       Gets or sets the table class used for construction and validation.
29
30   has_column
31         if ($obj->has_column($col)) { ... }
32
33       Returns 1 if the class has a column of this name, 0 otherwise.
34
35   column_info
36         my $info = $obj->column_info($col);
37
38       Returns the column metadata hashref for a column. For a description of
39       the various types of column data in this hashref, see "add_column" in
40       DBIx::Class::ResultSource
41
42   columns
43         my @column_names = $obj->columns;
44

FURTHER QUESTIONS?

46       Check the list of additional DBIC resources.
47
49       This module is free software copyright by the DBIx::Class (DBIC)
50       authors. You can redistribute it and/or modify it under the same terms
51       as the DBIx::Class library.
52
53
54
55perl v5.32.0                      2020-D0B7I-x2:8:Class::ResultSourceProxy::Table(3)
Impressum