DBIx::Class::PK::Auto - Automatic primary key class
__PACKAGE__->load_components(qw/PK::Auto Core/); __PACKAGE__->set_primary_key('id');
This class overrides the insert method to get automatically incremented primary keys.
PK::Auto is specified as the left of the Core component. See DBIx::Class::Manual::Component for details of component interactions.
PK::Auto does this by letting the database assign the primary key field and fetching the assigned value afterwards.
insert so that it will get the value of autoincremented primary keys.
Manually define the correct sequence for your table, to avoid the overhead associated with looking up the sequence automatically.
Matt S. Trout <firstname.lastname@example.org>
You may distribute this code under the same terms as Perl itself.