Jeffrey Ray Hallock > Storm-0.19 > Storm::Query::Select::Iterator

Download:
Storm-0.19.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.19   Source   Latest Release: Storm-0.240

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.
syntax highlighting: