DBIx::Class::PK::Auto(3) User Contributed Perl Documentation DBIx::Class::PK::Auto(3)

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

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

This class overrides the insert method to get automatically incremented primary keys.

PK::Auto is now part of Core.

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.

The code that was handled here is now in Row for efficiency.

The code that was handled here is now in ResultSource, and is being proxied to Row as well.

Check the list of additional DBIC resources.

This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.

2017-12-08 perl v5.34.0