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
Alzabo::Runtime::RowCursor(3) User Contributed Perl Documentation Alzabo::Runtime::RowCursor(3)

Alzabo::Runtime::RowCursor - Cursor that returns "Alzabo::Runtime::Row" objects

  use Alzabo::Runtime::RowCursor;

  my $cursor = $schema->table('foo')->all_rows;

  while ( my $row = $cursor->next )
  {
      print $row->select('foo'), "\n";
  }

Objects in this class are used to return "Alzabo::Runtime::Row" objects for queries. The cursor does not preload objects but creates them on demand, which is much more efficient. For more details on the rational please see the RATIONALE FOR CURSORS section in Alzabo::Design.

"Alzabo::Runtime::Cursor"

Returns the next "Alzabo::Runtime::Row" object or undef if no more are available.

Returns all the rows available from the current point onwards. This means that if there are five rows that will be returned when the object is created and you call "next" twice, calling all_rows after it will only return three.

Resets the cursor so that the next "next" call will return the first row of the set.

Returns the number of rows returned by the cursor so far.

Return the next row in a hash, where the hash key is the table name and the hash value is the row object.

Dave Rolsky, <autarch@urth.org>
2022-04-07 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.