We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DBIx::Custom Documents >
Count rows by count method.
count
my $count = $dbi->count(table => 'book', where => {title => 'Perl'});
Options is same as select method's ones .column option is set to count(*) by default. This is same as the following select method.
select
column
count(*)
my $count = $dbi->select('count(*)', table => 'book', where => {title => 'Perl'})->value;