DBIx::Custom::Where - Where clause
$where = DBIx::Custom::Where->new; my $sql = "select * from book $where";
param
my $param = $where->param; $where = $where->param({title => 'Perl', date => ['2010-11-11', '2011-03-05']}, name => ['Ken', 'Taro']); =head1 METHODS
clause
$where->clause(title => '{= title}', date => ['{< date}', '{> date}']);
Where clause. These clauses is joined by ' and ' at to_string() if corresponding parameter name is exists in param.
to_string()
or_clause
$where->or_clause(name => '{= name}');
clause which has these parameter name is joined by ' or '.
to_string
$where->to_string;
To install DBIx::Custom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Custom
CPAN shell
perl -MCPAN -e shell install DBIx::Custom
For more information on module installation, please visit the detailed CPAN module installation guide.