
Storm::Query::Select::Iterator - Iterates over the results of a select query

$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

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.

Returns the entire result set as a list.
Returns the next object in the result set or undef if there is none.
Returns all of the remaining objects in the result set as a list.
Re-executes the query, resetting the current item to the first result.

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

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.