1DBIx::Class::PK::Auto(3U)ser Contributed Perl DocumentatiDoBnIx::Class::PK::Auto(3)
2
3
4

NAME

6       DBIx::Class::PK::Auto - Automatic primary key class
7

SYNOPSIS

9       use base 'DBIx::Class::Core'; __PACKAGE__->set_primary_key('id');
10

DESCRIPTION

12       This class overrides the insert method to get automatically incremented
13       primary keys.
14
15       PK::Auto is now part of Core.
16
17       See DBIx::Class::Manual::Component for details of component
18       interactions.
19

LOGIC

21       "PK::Auto" does this by letting the database assign the primary key
22       field and fetching the assigned value afterwards.
23

METHODS

25   insert
26       The code that was handled here is now in Row for efficiency.
27
28   sequence
29       Manually define the correct sequence for your table, to avoid the
30       overhead associated with looking up the sequence automatically.
31

AUTHORS

33       Matt S. Trout <mst@shadowcatsystems.co.uk>
34

LICENSE

36       You may distribute this code under the same terms as Perl itself.
37
38
39
40perl v5.12.0                      2010-05-12          DBIx::Class::PK::Auto(3)
Impressum