Andy Grundman > DBIx-Class-0.03003 > DBIx::Class::PK

Download:
DBIx-Class-0.03003.tar.gz

Dependencies

Annotate this POD

CPAN RT

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

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.

syntax highlighting: