DBIx::Otogiri::Iterator - Iterator class for Otogiri
use Otogiri; my $db = Otogiri->new(connect_info => ['dbi:SQLite:...', '', '']); my $iter = $db->select(book => {price => {'>=' => 500}}); while (my $row = $iter->next) { printf "Title: %s \nPrice: %s yen\n", $row->{title}, $row->{price}; } printf "rows = %s\n", $iter->fetched_count;
Iterator class for Otogiri. DO NOT USE THIS CLASS DIRECTLY.
my $row = $iter->next;
Returns a row data as single hashref. Then, increment internal value "fetched_count".
my $count = $iter->fetched_count;
Returns a current "fetched_count".
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody <ytnobody@gmail.com>
DBIx::Otogiri
To install Otogiri, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Otogiri
CPAN shell
perl -MCPAN -e shell install Otogiri
For more information on module installation, please visit the detailed CPAN module installation guide.