DBIx::...Exports(3pm)

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

✨ 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 🧚


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