Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DBIx::Class::PK::Auto(User Contributed Perl DocumentatDBIx::Class::PK::Auto(3)

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

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

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.

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.

FURTHER	QUESTIONS?
       Check the list of additional DBIC resources.

COPYRIGHT AND LICENSE
       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.

perl v5.24.1			  2016-06-17	      DBIx::Class::PK::Auto(3)

NAME | SYNOPSIS | DESCRIPTION | LOGIC | METHODS | FURTHER QUESTIONS? | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=DBIx::Class::PK::Auto&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help