X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FPK%2FAuto.pm;h=2436120df50c6d1dd2b26c4f2b4955602e97067f;hb=34d52be2d55c86c6eddd2317157db7f2accbe810;hp=98e3b8911e3871b4258b6c97712dad26f5d4c9fd;hpb=451517e7031ac72038f54a9750fac60dab0a4b3c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/PK/Auto.pm b/lib/DBIx/Class/PK/Auto.pm index 98e3b89..2436120 100644 --- a/lib/DBIx/Class/PK/Auto.pm +++ b/lib/DBIx/Class/PK/Auto.pm @@ -3,6 +3,28 @@ package DBIx::Class::PK::Auto; use strict; use warnings; +=head1 NAME + +DBIx::Class::PK::Auto - Automatic Primary Key class + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +This class overrides the insert method to get automatically +incremented primary keys. + +=head1 METHODS + +=over 4 + +=item insert + +Overrides insert so that it will get the value of autoincremented +primary keys. + +=cut + sub insert { my ($self, @rest) = @_; my $ret = $self->NEXT::ACTUAL::insert(@rest); @@ -23,3 +45,16 @@ sub insert { } 1; + +=back + +=head1 AUTHORS + +Matt S. Trout + +=head1 LICENSE + +You may distribute this code under the same terms as Perl itself. + +=cut +