1Class::DBI::ColumnGroupUesre(r3)Contributed Perl DocumenCtlaatsiso:n:DBI::ColumnGrouper(3)
2
3
4

NAME

6       Class::DBI::ColumnGrouper - Columns and Column Groups
7

SYNOPSIS

9               my $colg = Class::DBI::ColumnGrouper->new;
10                  $colg->add_group(People => qw/star director producer/);
11
12               my @cols = $colg->group_cols($group);
13
14               my @all            = $colg->all_columns;
15               my @pri_col        = $colg->primary;
16               my @essential_cols = $colg->essential;
17

DESCRIPTION

19       Each Class::DBI class maintains a list of its columns as class data.
20       This provides an interface to that. You probably don't want to be
21       dealing with this directly.
22

METHODS

24   new
25               my $colg = Class::DBI::ColumnGrouper->new;
26
27       A new blank ColumnnGrouper object.
28
29   clone
30               my $colg2 = $colg->clone;
31
32       Clone an existing ColumnGrouper.
33
34   add_column / find_column
35               $colg->add_column($name);
36               my Class::DBI::Column $col = $colg->find_column($name);
37
38       Add or return a Column object for the given column name.
39
40   add_group
41               $colg->add_group(People => qw/star director producer/);
42
43       This adds a list of columns as a column group.
44
45   group_cols / groups_for
46               my @colg = $cols->group_cols($group);
47               my @groups = $cols->groups_for(@cols);
48
49       This returns a list of all columns which are in the given group, or the
50       groups a given column is in.
51
52   columns_in
53               my @cols = $colg->columns_in(@groups);
54
55       This returns a list of all columns which are in the given groups.
56
57   all_columns
58               my @all = $colg->all_columns;
59
60       This returns a list of all the real columns.
61
62   primary
63               my $pri_col = $colg->primary;
64
65       This returns a list of the columns in the Primary group.
66
67   essential
68               my @essential_cols = $colg->essential;
69
70       This returns a list of the columns in the Essential group.
71
72
73
74perl v5.32.0                      2020-07-28      Class::DBI::ColumnGrouper(3)
Impressum