1 package DBIx::Class::PK::Auto;
3 #use base qw/DBIx::Class::PK/;
4 use base qw/DBIx::Class/;
12 DBIx::Class::PK::Auto - Automatic primary key class
16 use base 'DBIx::Class::Core';
17 __PACKAGE__->set_primary_key('id');
21 This class overrides the insert method to get automatically incremented primary
24 PK::Auto is now part of Core.
26 See L<DBIx::Class::Manual::Component> for details of component interactions.
30 C<PK::Auto> does this by letting the database assign the primary key field and
31 fetching the assigned value afterwards.
37 The code that was handled here is now in Row for efficiency.
41 The code that was handled here is now in ResultSource, and is being proxied to
46 Matt S. Trout <mst@shadowcatsystems.co.uk>
50 You may distribute this code under the same terms as Perl itself.