Teng::Iterator - Iterator for Teng
This is an iterator class for Teng.
my $itr = Your::Model->search('user',{}); my @rows = $itr->all; # get all rows # do iteration while (my $row = $itr->next) { ... }
Create new Teng::Iterator's object. You may not call this method directly.
Get next row data.
Get all row data in array.
Set row object creation mode.
Set column type application mode.
If column has SQL type and it is numeric, regard it as number and add 0 to the value. If column has SQL type and it isn't numeric, regard it as string and add '' to the value. If column doesn't have SQL type, the value won't be changed.
If this is true, this implies apply_sql_types also true. If column has no SQL type, it guesses SQL type with its value. When column value likes numeric, regard it as number and add 0 to the value. If not, regard it as string and add '' to the value.
To install Teng, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Teng
CPAN shell
perl -MCPAN -e shell install Teng
For more information on module installation, please visit the detailed CPAN module installation guide.