DBIx::...:Parent(3pm)

πŸ“¦
version 2.037000 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– DBIx::Class::Helper::Schema::Verifier::Parent πŸ’–

okay bestie, welcome to the DBIx::...:Parent(3pm) page, aka the User Contributed Perl Documentation glow-up of DBIx::Class::Helper::Schema::Verifier::Parent. pull up a chair, grab a boba, we're doing schema hygiene today 🧚✨


🌸 NAME 🌸

DBIx::Class::Helper::Schema::Verifier::Parent β€” it verifies that your Results and ResultSets have the correct base class. that's it, that's the whole personality, and honestly? iconic. πŸ‘‘


✨ SYNOPSIS ✨

here's the vibe, copy-paste it into your schema and thank me later:

package MyApp::Schema;

__PACKAGE__->load_components('Helper::Schema::Verifier::Parent');

sub base_result    { 'MyApp::Schema::Result'    }
sub base_resultset { 'MyApp::Schema::ResultSet' }

see how you just declare your base classes with those two little subs? no cap, that's the whole setup. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, DBIx::Class::Helper::Schema::Verifier::Parent verifies that all of your results and resultsets use the base class that you specify. πŸ’…

that's it. that's the tea. every result and every resultset gets the vibe check, and if it's not inheriting from the base class you told it to inherit from, it's giving 🚩 instead of πŸ‘‘. literally the friend who checks your outfit before you leave the house, except it's checking your inheritance chain. periodt. ✨


πŸ’œ AUTHOR πŸ’œ

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>

(hi fREW, you ate with this one 🫢)


This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.

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 yes bestie, it's free, it's open, it's generous, it's the communal closet of software licensing 🌈


ngl this page is short but it's doing exactly what it says on the tin. no filler, no side quests, just base-class verification main character energy πŸ’–

and that's a wrap!! 🌟 this lil beauty came to you as perl v5.40.0, dated 2024-11-16, filed under DBIx::...:Parent(3pm) in the User Contributed Perl Documentation β€” mwah, slay, bye bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from