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 the Pinto::Schema::Result::Distribution that 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::Distribution instead, she gives you back the Pinto::Schema::Result::Distribution from 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 cache argument, and it must be a reference to a hash. she'll use it to cache results so that repeated calls to get_distribution need 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
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 🫢


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