Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dbix::class::candy::exports(3pm) [debian man page]

DBIx::Class::Candy::Exports(3pm)			User Contributed Perl Documentation			  DBIx::Class::Candy::Exports(3pm)

NAME
DBIx::Class::Candy::Exports - Create sugar for your favorite ORM, DBIx::Class VERSION
version 0.002100 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; 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. DESCRIPTION
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. AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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. perl v5.14.2 2012-03-14 DBIx::Class::Candy::Exports(3pm)

Check Out this Related Man Page

DBIx::Class::Helper::ResultSet::NoColumns(3pm)		User Contributed Perl Documentation	    DBIx::Class::Helper::ResultSet::NoColumns(3pm)

NAME
DBIx::Class::Helper::ResultSet::NoColumns - Look ma, no columns! VERSION
version 2.013002 SYNOPSIS
package MySchema::ResultSet::Bar; use strict; use warnings; use parent 'DBIx::Class::ResultSet'; __PACKAGE__->load_components('Helper::ResultSet::NoColumns'); # in code using resultset: my $rs = $schema->resultset('Bar')->no_columns->search(undef, { '+columns' => { 'foo' => 'me.foo' }, }); DESCRIPTION
This component simply gives you a method to clear the set of columns to be selected. It's just handy sugar. See "NOTE" in DBIx::Class::Helper::ResultSet for a nice way to apply this to your entire schema. METHODS
no_columns $rs->no_columns Returns resultset with zero columns configured, fresh for the addition of new columns. AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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. perl v5.14.2 2012-06-18 DBIx::Class::Helper::ResultSet::NoColumns(3pm)
Man Page

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

question on perl script

LOGFILE ======== My name is: ?Anthony Perkins I am an American citizen. My name is: ?Donte Suarez I am a Spanish citizen. My name is: ? lenny Davis I am an Australian citizen. My name is: ?allen rigodeau I am a French citizen. My name is: ? manuel williams I am a Mexican citizen. ... (2 Replies)
Discussion started by: gholdbhurg
2 Replies

2. Shell Programming and Scripting

Perl - Sort and Count foreach line

Can any one please help I am trying to sort each item in every line and count the common (non case sensitive) and at the end printing all the unique alphabetically. Here is what i did ... I can print all the lines but struck to sort each line some were: I am getting the output as: I... (5 Replies)
Discussion started by: sureshcisco
5 Replies