Aniki::Plugin::RangeConditionMaker - range condition maker
package MyDB; use Mouse v2.4.5; extends qw/Aniki/; with qw/Aniki::Plugin::RangeConditionMaker/; package main; my $db = MyDB->new(...); my $where = $db->make_range_condition({ upper => { id => 10 } }); # => { id => { '<' => 10 } } $where = $db->make_range_condition({ lower => { id => 0 } }); # => { id => { '>' => 0 } } $where = $db->make_range_condition({ upper => { id => 10 }, lower => { id => 0 } }); # => { id => [-and => { '>' => 0 }, { '<' => 10 }] }
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>
To install Aniki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aniki
CPAN shell
perl -MCPAN -e shell install Aniki
For more information on module installation, please visit the detailed CPAN module installation guide.