DBIx::Class::PK::Auto(3pm)

DBIx::Class::PK::Auto3pm

Automatic primary key class

Usage

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

Overview

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.

Releases

10 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12
  9. 13

From libdbix-class-perl 0.082844-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.