NAME
Storm::Query::Select::Iterator - Iterates over the results of a select query
SYNOPSIS
$query = $storm->select( 'Person' )->where( '.first_name', '=', 'Homer' );
$iter = $query->results;
$iter->next; # get the next results
$iter->remaining; # get the remaining results
$iter->reset; # reset the query, to execute it again
$iter->all; # get all results
DESCRIPTION
Results from a select query (Storm::Query::Select) are returned in a Storm::Query::Select::Iterator object. You can use the iterator to access the result set.
METHODS
- all
-
Returns the entire result set as a list.
- next
-
Returns the next object in the result set or undef if there is none.
- remaining
-
Returns all of the remaining objects in the result set as a list.
- reset
-
Re-executes the query, resetting the current item to the first result.
AUTHOR
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
COPYRIGHT
Copyright (c) 2010 Jeffrey Ray Hallock. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.