| 1 | package DBIx::Class::Helper::ResultSet; | ||
| 2 | $DBIx::Class::Helper::ResultSet::VERSION = '2.033001'; | ||
| 3 | # ABSTRACT: All the ResultSet Helpers in one place | ||
| 4 | |||
| 5 | use parent qw{ | ||
| 6 | DBIx::Class::Helper::ResultSet::AutoRemoveColumns | ||
| 7 | DBIx::Class::Helper::ResultSet::CorrelateRelationship | ||
| 8 | DBIx::Class::Helper::ResultSet::IgnoreWantarray | ||
| 9 | DBIx::Class::Helper::ResultSet::Me | ||
| 10 | DBIx::Class::Helper::ResultSet::NoColumns | ||
| 11 | DBIx::Class::Helper::ResultSet::Random | ||
| 12 | DBIx::Class::Helper::ResultSet::RemoveColumns | ||
| 13 | DBIx::Class::Helper::ResultSet::ResultClassDWIM | ||
| 14 | DBIx::Class::Helper::ResultSet::SearchOr | ||
| 15 | DBIx::Class::Helper::ResultSet::SetOperations | ||
| 16 | DBIx::Class::Helper::ResultSet::Shortcut | ||
| 17 | }; | ||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | __END__ | ||
| 22 | |||
| 23 | =pod | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | DBIx::Class::Helper::ResultSet - All the ResultSet Helpers in one place | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This is just a simple Helper helper that includes all of the ResultSet Helpers | ||
| 32 | in one convenient module. It does not include deprecated helpers. | ||
| 33 | |||
| 34 | =head2 NOTE | ||
| 35 | |||
| 36 | You probably want this applied to your entire schema. The most convenient | ||
| 37 | way to do that is to make a base ResultSet and inherit from that in all of | ||
| 38 | your custom ResultSets as well has make it the default ResultSet for the | ||
| 39 | non-custom ResultSets. Example: | ||
| 40 | |||
| 41 | package My::App::Schema::ResultSet; | ||
| 42 | |||
| 43 | use strict; | ||
| 44 | use warnings; | ||
| 45 | |||
| 46 | use parent 'DBIx::Class::ResultSet'; | ||
| 47 | |||
| 48 | __PACKAGE__->load_components('Helper::ResultSet'); | ||
| 49 | |||
| 50 | 1; | ||
| 51 | |||
| 52 | package My::App::Schema; | ||
| 53 | |||
| 54 | use parent 'DBIx::Class::Schema'; | ||
| 55 | |||
| 56 | My::App::Schema->load_namespaces( | ||
| 57 | default_resultset_class => 'ResultSet', | ||
| 58 | ); | ||
| 59 | |||
| 60 | 1; | ||
| 61 | |||
| 62 | =head1 AUTHOR | ||
| 63 | |||
| 64 | Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> | ||
| 65 | |||
| 66 | =head1 COPYRIGHT AND LICENSE | ||
| 67 | |||
| 68 | This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt. | ||
| 69 | |||
| 70 | This is free software; you can redistribute it and/or modify it under | ||
| 71 | the same terms as the Perl 5 programming language system itself. | ||
| 72 | |||
| 73 | =cut |