1Storm::Query::Select::IUtseerratCoorn(t3r)ibuted Perl DoSctuomremn:t:aQtuieorny::Select::Iterator(3)
2
3
4

NAME

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

SYNOPSIS

10        $query = $storm->select( 'Person' )->where( '.first_name', '=', 'Homer' );
11
12        $iter = $query->results;
13
14        $iter->next; # get the next results
15
16        $iter->remaining; # get the remaining results
17
18        $iter->reset; # reset the query, to execute it again
19
20        $iter->all; # get all results
21

DESCRIPTION

23       Results from a select query (Storm::Query::Select) are returned in a
24       Storm::Query::Select::Iterator object. You can use the iterator to
25       access the result set.
26

METHODS

28       all Returns the entire result set as a list.
29
30       next
31           Returns the next object in the result set or undef if there is
32           none.
33
34       remaining
35           Returns all of the remaining objects in the result set as a list.
36
37       reset
38           Re-executes the query, resetting the current item to the first
39           result.
40

AUTHOR

42       Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
43
45           Copyright (c) 2010 Jeffrey Ray Hallock. All rights reserved.
46           This program is free software; you can redistribute it and/or
47           modify it under the same terms as Perl itself.
48
49
50
51perl v5.32.0                      2020-07-28 Storm::Query::Select::Iterator(3)
Impressum