Storm::...terator(3)
π Storm::Query::Select::Iterator β bestie edition π
ok so this is the Perl doc for Storm::Query::Select::Iterator, from the User Contributed Perl Documentation section (man page 3, iykyk). it's literally the lil iterator that walks over your select query results. slay.
β¨ NAME β¨
Storm::Query::Select::Iterator β it iterates over the results of a select query. that's it, that's the whole job, and it does it beautifully. π¦
πΈ SYNOPSIS πΈ
ok watch, here's the vibe:
$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
like. you build a query, you grab the results, and then you've got an iterator in your hands and you can do cute things with it. periodt. π
π DESCRIPTION π
so when you run a select query (Storm::Query::Select), the results don't just show up as some boring array β nope, they come back wrapped in a Storm::Query::Select::Iterator object. π«Ά
and then you use that iterator to get at your result set. that's the whole plot. no cap.
π METHODS π
ok bestie here are the methods, all of them, no skips:
allβ returns the entire result set, as a list. the whole thing. every last one. πnextβ returns the next object in the result set, orundefif there isn't one. so like, when you run out, it hands youundefand you know you're done. respect. πremainingβ returns all of the remaining objects in the result set, as a list. everything that's left, in one go. πresetβ re-executes the query, which resets the current item back to the first result. so you get to start over. main character energy honestly. β¨
π AUTHOR π
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com> β the icon, the legend, the one who wrote this. π
β 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.
so yeah, it's free software, same terms as Perl itself, go wild but be normal about it. π§
aaaand that's the whole page!! this was Storm::...terator(3) β yes the title is truncated in the header, that's just how the man page file is named, don't come for me π β brought to you by perl v5.42.0, dated 2025-07-25, in the User Contributed Perl Documentation. mwah, go iterate on something gorgeous. ππΈπ¦π
π¦ where this page comes from
- fedora 43: perl-Storm 0.240-34.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms