DBIx::Class::Candy::Exports(3pm)

DBIx::Class::Candy::Exports3pm

Create sugar for your favorite orm, dbix::class

Usage

 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;

The above will make it such that users of your component who use it with DBIx::Class::Candy will have the methods you designate exported into their namespace.

Overview

The whole point of this module is to make sugar a first class citizen in the component world that dominates DBIx::Class. I make enough components and like this sugar idea enough that I want to be able to have both at the same time.

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.

export_method_aliases

 export_method_aliases {
   old_method_name => 'new_sub_name',
 };

Use this subroutine to define methods that get exported as subroutines of a different name.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12
  6. 13

Author

Arthur Axel "fREW" Schmidt <[email protected]>

From libdbix-class-candy-perl 0.005004-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.