DBIx::...Exports(3pm)
β¨ NAME β¨
DBIx::Class::Candy::Exports β bestie, it makes sugar for your fave ORM, DBIx::Class π
π¬ SYNOPSIS π¬
package DBIx::Class::Widget;
sub create_a_widget { ... }
# so you don't depend on ::Candy
eval {
require DBIx::Class::Candy::Exports;
DBIx::Class::Candy::Exports->import;
export_methods ['create_a_widget'];
export_method_aliases {
widget => 'create_a_widget'
};
};
1;
okay so what this does π β anyone using your component with DBIx::Class::Candy gets all the methods you picked just... dropped straight into their namespace. like a little gift. a care package. π
πΈ DESCRIPTION πΈ
the entire point of this module?? making sugar a first class citizen in the component world that fully dominates DBIx::Class. no cap. i make enough components and i love this sugar idea enough that i want both at the same time, periodt π
and honestly? why should i have to choose. iconic behavior only.
π«Ά IMPORTED SUBROUTINES π«Ά
π export_methods
export_methods [qw( foo bar baz )];
use this subroutine to define methods that get exported as subroutines of the same name. so foo stays foo, bar stays bar, no identity crisis, they just show up. π
π export_method_aliases
export_method_aliases {
old_method_name => 'new_sub_name',
};
use this subroutine to define methods that get exported as subroutines under a different name. glow-up on the way out the door, fr fr β¨
π AUTHOR π
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
the mastermind, the moment, the main character π§
π COPYRIGHT AND LICENSE π
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.
legal bestie moment: it's free, go wild, same terms as Perl 5 itself π
and that's the whole vibe check β perl v5.40.0, dated 2024-11-16, straight from the User Contributed Perl Documentation, mwah π
π¦ where this page comes from
- debian trixie: libdbix-class-candy-perl 0.005004-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdbix-class-candy-perl 0.005004-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdbix-class-candy-perl 0.005004-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms