DBIx::Class::PK(3)
π DBIx::Class::PK β Primary Key class π
okay bestie, welcome to the DBIx::Class::PK(3) page from the User Contributed Perl Documentation β yes, the manual name is right there, folded in like a little name tag. This is the Primary Key class, and it's lowkey important, so let's go. β¨
πΈ SYNOPSIS πΈ
This section is literally empty in the original β no code, no text, no nothing. We're moving on, bestie. π
π¦ DESCRIPTION π¦
okay so this class contains methods for handling primary keys and methods depending on them. That's the whole vibe. Primary keys are the main character here, periodt. π
β¨ METHODS β¨
π id π
Returns the primary key(s) for a row. Can't be called as a class method β like, no, bestie, it's not that kind of method. π ββοΈ
π₯ ID π₯
Returns a unique id string identifying a result object by primary key.
It's used by DBIx::Class::CDBICompat::LiveObjectIndex and DBIx::Class::ObjectCache. iykyk. π
WARNING β οΈ the default_create_IDmethod used by this function orders the returned values by the alphabetical order of the primary column names, unlike theidmethod, which follows the same order in which columns were fed toset_primary_keyinDBIx::Class::ResultSource. So yeah, the ordering is not the same β do not get it twisted. π
π ident_condition π
Produces a condition hash to locate a row based on the primary key(s). Cute, useful, iconic.
my $cond = $result_source->ident_condition();
my $cond = $result_source->ident_condition('alias');
β FURTHER QUESTIONS? β
Check the list of additional DBIC resources. That's the whole assignment, bestie. π«Ά
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library. Slay, legally. π
okay bestie, page over! π this was DBIx::Class::PK(3) β perl v5.42.0, dated 2025-01-22. mwah π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms