The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DBIx::Class::AlwaysRS - Always return recordsets

VERSION

Version 0.01

SYNOPSIS

    use DBIx::Class;

    __PACKAGE__->load_components(qw/Core DB AlwaysRS/);

or with DBIC-Loader __PACKAGE__->config(additional_base_classes => [qw/DBIx::Class::AlwaysRS/]);

DESCRIPTION

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.

METHODS

overrides search to enforce scalar context.

AUTHOR

Marcus Ramberg, <marcus at thefeed.no>

BUGS

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?Queue=DBIx-Class-AlwaysRS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc DBIx::Class::AlwaysRS

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

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.