NAME
DBIO::PK - Primary Key class
VERSION
version 0.900000
SYNOPSIS
DESCRIPTION
This class contains methods for handling primary keys and methods depending on them.
METHODS
id
Returns the primary key(s) for a row. Can't be called as a class method.
_ident_values
Internal helper returning primary-key values (optionally from in-storage state).
ID
Returns a unique id string identifying a result object by primary key.
- WARNING
-
The default
_create_IDmethod used by this function orders the returned values by the alphabetical order of the primary column names, unlike the "id" method, which follows the same order in which columns were fed to "set_primary_key" in DBIO::ResultSource.
_create_ID
Internal formatter producing a unique identity string for a result object.
ident_condition
my $cond = $result_source->ident_condition();
my $cond = $result_source->ident_condition('alias');
Produces a condition hash to locate a row based on the primary key(s).
_storage_ident_condition
Internal variant of ident_condition using in-storage PK values.
_mk_ident_cond
Internal builder for primary-key based condition hashes.
AUTHOR
DBIO & DBIx::Class Authors
COPYRIGHT AND LICENSE
Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.