Pinto:...ibution(3pm)

🌸 NAME 🌸

okay so bestie, gather round, because this is Pinto::Schema::Result::Distribution β€” it represents a distribution archive πŸ’– like, it IS the distribution archive in database form. no cap.

✨ VERSION ✨

version 0.14 β€” that's the one, that's the moment πŸŽ€


πŸ’… NAME (again, yes really) πŸ’…

Pinto::Schema::Result::Distribution

not me putting the name twice, but that's literally what the page does so we're doing it, periodt 🫢

πŸ¦‹ TABLE πŸ¦‹

the table is "distribution" β€” iconic name, ate, no notes 🌈

πŸ‘‘ ACCESSORS πŸ‘‘

these are all the lil fields you can grab off a distribution row. every single one, we're listing every single one, i would never do you dirty πŸ’œ

  • id β€” data_type: 'integer', is_auto_increment: 1, is_nullable: 0. so it's a whole integer, it auto-increments on its own like the main character it is, and it is NOT nullable β€” you cannot leave this baby empty πŸ™…β™€οΈ
  • author β€” data_type: 'text', is_nullable: 0. text, and nope, not nullable ✨
  • archive β€” data_type: 'text', is_nullable: 0. text, also not nullable πŸŽ€
  • source β€” data_type: 'text', is_nullable: 0. text, not nullable, we keep it consistent around here πŸ’–
  • mtime β€” data_type: 'integer', is_nullable: 0. an integer, not nullable ⭐
  • sha256 β€” data_type: 'text', is_nullable: 0. text, not nullable, very secure of it πŸ”₯
  • md5 β€” data_type: 'text', is_nullable: 0. text, not nullable, the other hash bestie πŸ“
  • metadata β€” data_type: 'text', is_nullable: 0. text, not nullable, and yes that's the last one πŸ’€
fr fr every single accessor is is_nullable: 0. nothing here is optional. the vibe check is strict 😭

🌟 PRIMARY KEY 🌟

  • "id"

that's it. that's the primary key. id runs the show πŸ‘‘

🧚 UNIQUE CONSTRAINTS 🧚

"author_archive_unique"

this constraint is giving "you can't do that twice" energy, and it covers:

  • "author"
  • "archive"

like, that combo has to be unique. the audacity of duplicates? not on this table's watch πŸ’…

🌈 RELATIONS 🌈

all three of these are Type: has_many, which lowkey means one distribution has so many of these lil friends:

  • packages β€” Type: has_many. Related object: Pinto::Schema::Result::Package πŸ“¦
  • prerequisites β€” Type: has_many. Related object: Pinto::Schema::Result::Prerequisite βœ…
  • registrations β€” Type: has_many. Related object: Pinto::Schema::Result::Registration πŸ“

πŸ’– Moose ROLES APPLIED πŸ’–

  • Pinto::Role::Schema::Result

one role. applied. slay ✨

🫢 AUTHOR 🫢

Jeffrey Ryan Thalhammer <jeff@stratopan.com> β€” the legend, the icon, the moment πŸ’œ

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.


okay bestie that's the whole page, we did it πŸ¦‹ and just so you know, this was perl v5.40.1, dated 2025-04-21 β€” mwah, go build something cute πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from