1 package DBIx::Class::PK::Auto;
3 #use base qw/DBIx::Class::PK/;
4 use base qw/DBIx::Class/;
14 DBIx::Class::PK::Auto - Automatic primary key class
18 use base 'DBIx::Class::Core';
19 __PACKAGE__->set_primary_key('id');
23 This class overrides the insert method to get automatically incremented primary
26 PK::Auto is now part of Core.
28 See L<DBIx::Class::Manual::Component> for details of component interactions.
32 C<PK::Auto> does this by letting the database assign the primary key field and
33 fetching the assigned value afterwards.
39 The code that was handled here is now in Row for efficiency.
43 The code that was handled here is now in ResultSource, and is being proxied to
46 =head1 FURTHER QUESTIONS?
48 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
50 =head1 COPYRIGHT AND LICENSE
52 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
53 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
54 redistribute it and/or modify it under the same terms as the
55 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.