SQL::Tr...ildArgs(3)

πŸ’… SQL::Tr...ildArgs(3) β€” like, the whole vibe

Okay so bestie, welcome to SQL::Tr...ildArgs(3), straight out of the User Contributed Perl Documentation. Yes the title is literally abbreviated with dots, no I don't know why, yes we're moving on 🫢


✨ NAME ✨

SQL::Translator::Role::BuildArgs β€” its whole entire job is removing undefined constructor arguments. That's it. That's the gig. Iconic honestly πŸ‘‘


🌸 SYNOPSIS 🌸

Here's the little ritual you do, copy it exactly fr fr:

package Foo;
use Moo;
with qw(SQL::Translator::Role::BuildArgs);

That's the whole thing. package Foo;, then use Moo;, then with qw(SQL::Translator::Role::BuildArgs); and you're in. Slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

So this lil Moo::Role wraps BUILDARGS β€” like it puts a little coat on it β€” and what it does while it's in there is remove "undef" constructor arguments. Poof. Gone. Not invited to the function. πŸ’¨

And why, you ask? Backwards compatibility, babe. Specifically with the old Class::Base-based SQL::Translator::Schema::Object. So if you're out here throwing undef at your constructors and expecting the ancient behaviour to still hit, this role is the fairy godmother making that happen 🧚✨

No cap, that's the whole description. Short king.


πŸŽ€ sign-off πŸŽ€

This page was brought to you by perl v5.42.0, dated 2024-12-12, and living at SQL::Tr...ildArgs(3) in the User Contributed Perl Documentation. Go forth and build your args, bestie πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from