Matt S Trout > DBIx-Class-0.03 > DBIx::Class::PK::Auto

Download:
DBIx-Class-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  16
Stalled  11
View/Report Bugs
Source   Latest Release: DBIx-Class-0.082800

NAME ^

DBIx::Class::PK::Auto - Automatic Primary Key class

SYNOPSIS ^

DESCRIPTION ^

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

You don't want to be using this directly - instead load the appropriate one for your database, e.g. PK::Auto::SQLite

METHODS ^

insert

Overrides insert so that it will get the value of autoincremented primary keys.

sequence

Manually define the correct sequence for your table, to avoid the overhead associated with looking up the sequence automatically.

AUTHORS ^

Matt S. Trout <mst@shadowcatsystems.co.uk>

LICENSE ^

You may distribute this code under the same terms as Perl itself.

syntax highlighting: