The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::PK - Primary Key class

SYNOPSIS

DESCRIPTION

This class represents methods handling primary keys and depending on them.

METHODS

set_primary_key <@cols>

define one or more columns as primary key for this class

find

Finds columns based on the primary key(s).

discard_changes

Roll back changes that hasn't been comitted to the database.

id

returns the primary key(s) for the current row. Can't be called as a class method.

primary_columns

read-only accessor which returns a list of primary keys.

AUTHORS

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

LICENSE

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