Storm::...terator(3)

πŸ“¦
version 0.240 Β· 2 versions
, in fedora 43

πŸ’– 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, or undef if there isn't one. so like, when you run out, it hands you undef and 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 (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