logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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

Description

       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.

Further Questions?

       Check the list of additional DBIC resources.

Logic

       "PK::Auto" does this by letting the database assign the primary key field and fetching the assigned value
       afterwards.

Methods

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

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

Name

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

Synopsis

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

See Also