DBIx::...Fields(3pm)

🌸 NAME 🌸

DBIx::Class::Factory::Fields β€” the fields situation for the DBIx::Class::Factory class πŸ’…

okay so real talk, this page lives in the User Contributed Perl Documentation section of the manual (section 3pm, perl girlies know), and it's short but it's mighty. let's get into it 🫢


✨ DESCRIPTION ✨

So here's the tea, bestie: every single callback you use over in DBIx::Class::Factory gets handed a DBIx::Class::Factory::Fields instance as an argument. that's it. that's the whole vibe. it's the little object that shows up in your callback like "hi bestie, here are your fields" πŸ˜ŒπŸ’–


πŸ’… METHODS πŸ’…

  • new β€” the Constructor, obviously. and like… you shouldn't call it explicitly, okay? it's not for you, it's an internal thing. the factory handles it. hands off πŸ™ˆ
  • all β€” Returns a hashref with all the fields that are not excluded. so like, everything that made the cut ✨
  • get β€” Gets the value of the field. one field, one value, no drama:
$fields->get('name');

look at that. iconic. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Vadim Pushtaev, "pushtaev@cpan.org" β€” the icon, the legend, the moment πŸ’œ


πŸ› BUGS AND FEATURES πŸ›

ngl, bugs are possible 😭 and feature requests are welcome πŸ₯³ so like, write me as soon as possible, fr fr. don't be shy, the inbox is open 🫢


Copyright 2015 Vadim Pushtaev.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. free software, as it should be πŸ’š


and that's a wrap bestie!! this whole thing was perl v5.36.0, dated 2023-02-14 β€” valentine's day drop, how romantic πŸ’– anyway go read your callbacks, mwah πŸ˜˜πŸ’…
πŸ“¦ where this page comes from