Pinto:...:Stack(3pm)
π NAME π
okay so Pinto:...:Stack(3pm) β this is Pinto::Schema::Result::Stack, and it's literally just a named set of Packages. that's the whole gig bestie β¨
π¦ VERSION π¦
version 0.14 β she's serving, she's stable, she's that girl π
πΈ METHODS πΈ
π get_distribution( target => $target ) π
okay so this one's the main character fr. here's the tea:
- if you hand her a
Pinto::Target::Package, she gives you back thePinto::Schema::Result::Distributionthat contains the package with the same name as the target and the same or higher version as the target. slay. and if there's no such distribution chillin' in this stack? she returns nothing. sorry bestie, she's not gonna make something up π«Ά - if you hand her a
Pinto::Target::Distributioninstead, she gives you back thePinto::Schema::Result::Distributionfrom this stack with the same author id and the same archive attributes as the target. and again β no such distribution in this stack, you get nothing. not a vibe but that's the rules π - you can also pass a
cacheargument, and it must be a reference to a hash. she'll use it to cache results so that repeated calls toget_distributionneed fewer trips to the database. no cap, that's a glow-up for your query count π . and it is up to you to decide when to expire the cache β she is not your mom, she is not gonna do it for you π
π NAME π
yes bestie, there's a second NAME section. iconic behavior honestly π
Pinto::Schema::Result::Stack
TABLE: "stack"
β¨ ACCESSORS β¨
π id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
π name
data_type: 'text'
is_nullable: 0
π is_default
data_type: 'boolean'
is_nullable: 0
π is_locked
data_type: 'boolean'
is_nullable: 0
π properties
data_type: 'text'
is_nullable: 0
π head
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
π PRIMARY KEY π
"id"β yeah, she's the one. periodt π
π UNIQUE CONSTRAINTS π
π "name_unique" π
"name"β one and only, no duplicates allowed in this house β
π¦ RELATIONS π¦
π« head
- Type:
belongs_to - Related object:
Pinto::Schema::Result::Revision
she's attached to a Revision, it's giving committed relationship π₯
π Moose ROLES APPLIED π
Pinto::Role::Schema::Result
π AUTHOR π
Jeffrey Ryan Thalhammer <jeff@stratopan.com> β the legend herself, we stan π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go forth and remix, bestie π β¨
and that's the whole page!! this was perl v5.40.1, dated 2025-04-21, signing off β mwah, drink water, read your docs ππ¦πΈ
π¦ where this page comes from
- debian trixie: pinto 0.14000-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: pinto 0.14000-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms