Aniki::Plugin::Count - Count rows in database.
package MyDB; use Mouse; extends qw/Aniki/; with qw/Aniki::Plugin::Count/; package main; my $db = MyDB->new(...); $db->count('user'); # => The number of rows in 'user' table. $db->count('user', '*', {type => 2}); # => SELECT COUNT(*) FROM user WHERE type=2
TODO
perl
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.