GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Teng::Iterator(3) User Contributed Perl Documentation Teng::Iterator(3)

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) {
    ...
  }

$itr = Teng::Iterator->new()
Create new Teng::Iterator's object. You may not call this method directly.
my $row = $itr->next();
Get next row data.
my @ary = $itr->all;
Get all row data in array.
$itr->suppress_object_creation($bool)
Set row object creation mode.
$itr->apply_sql_types($bool)
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.

$itr->guess_sql_types($bool)
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.
2020-03-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.