DBIx-Class-MoreHelpers
view release on metacpan or search on metacpan
lib/DBIx/Class/Helper/ResultSet/Shortcut/Search/Is.pm view on Meta::CPAN
package DBIx::Class::Helper::ResultSet::Shortcut::Search::Is;
use strict;
use warnings;
use parent 'DBIx::Class::Helper::ResultSet::Shortcut::Search::Base';
sub is {
my ( $self, @columns ) = @_;
return $self->_helper_apply_search( { '=' => 'true' }, @columns );
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
DBIx::Class::Helper::ResultSet::Shortcut::Search::Is
=head1 VERSION
version 1.0001
=head2 is(@columns || \@columns)
$rs->is('active');
$rs->is(['active', 'blocked']);
=head1 AUTHOR
D Ruth Holloway <ruth@hiruthie.me>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by D Ruth Holloway.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 1.095 second using v1.01-cache-2.11-cpan-39bf76dae61 )