DBIx::Class::AlwaysRS - Always return recordsets
Version 0.01
use DBIx::Class;
__PACKAGE__->load_components(qw/Core DB AlwaysRS/);
| or with DBIC-Loader | |
| __PACKAGE__->config(additional_base_classes => [qw/DBIx::Class::AlwaysRS/]); |
DBIx::Class uses the wantarray function to determine if you called search in list context or scalar context, and return a list or a recordset. This module overrides that functionality to always return a recordset. It can be useful for example in Template Toolkit, which always operates in list context, or if you just like recordsets like me.
overrides search to enforce scalar context.
Marcus Ramberg, <marcus at thefeed.no>
Please report any bugs or feature requests to
bug-dbix-class-alwaysrs at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc DBIx::Class::AlwaysRS
You can also look for information at:
Copyright 2006 Marcus Ramberg, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.