DBIx::...ultSet(3pm)
β¨ NAME β¨
DBIx::Class::Helper::Row::CleanResultSet β bestie, this is the little helper that hands you an unfiltered ResultSet straight off the row. That's it. That's the whole job. π
(and yes, the page itself is filed under DBIx::...ultSet(3pm), iykyk β the name got a little chopped in the header, but the module is the one up there βοΈ)
πΈ SYNOPSIS πΈ
In your result class, you load the component like this:
__PACKAGE__->load_components('Helper::Row::CleanResultSet');
Elsewhere, once that's loaded, you just call it on the row:
$row->clean_rs->$some_rs_method
which is giving the same energy as doing this:
$row->result_source->resultset->$some_rs_method
same vibe, shorter path, no cap π«Ά
π¦ DESCRIPTION π¦
okay so sometimes β and you will have a sometimes β you need to be able to access the ResultSet containing all rows. Not the filtered one, not the one somebody's been chaining conditions onto, the whole thing. That's the moment clean_rs walks in with main character energy and hands it to you. π
π METHODS π
clean_rs
$row->clean_rs
that's the move. call it on a row, get a clean ResultSet back, slay. β¨
π AUTHOR π
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
an absolute icon, fr fr π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so basically: it's free, it's yours to play with, just keep it on the same terms as Perl 5 itself. periodt. π«Ά
okay bestie that's the whole page, we ate and left no crumbs π
β this was brought to you by perl v5.40.0 and dated 2024-11-16, and the page signs off as DBIx::...ultSet(3pm) because the header was being a little dramatic with the abbreviation. mwah πβ¨
π¦ where this page comes from
- debian trixie: libdbix-class-helpers-perl 2.037000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdbix-class-helpers-perl 2.037000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdbix-class-helpers-perl 2.037000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms