DBIx::...ultSet(3pm)

πŸ“¦
version 2.037000 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

DBIx::Class::Helper::ResultSet β€” the way that this is all the ResultSet Helpers in one place πŸ’– (and yeah bestie, this is the DBIx::...ultSet(3pm) page, you're in the right spot 🫢)


🌸 DESCRIPTION 🌸

Okay so listen. This is just a simple Helper helper (yes, helper helper, we said what we said πŸ’…) that pulls in all of the ResultSet Helpers into one convenient module. One stop shop. Iconic behaviour fr fr.

Heads up though: it does not include deprecated helpers. Those ones are not invited to the party πŸ™ˆ

πŸŽ€ NOTE πŸŽ€

Lowkey the move here is applying this to your entire schema. You probably want that, no cap. The most convenient way to do it:

  1. make a base ResultSet, and
  2. inherit from that in all of your custom ResultSets, and also
  3. make it the default ResultSet for the non-custom ResultSets.

Example time, bestie πŸ‘‘:

package My::App::Schema::ResultSet;

use strict;
use warnings;

use parent 'DBIx::Class::ResultSet';

__PACKAGE__->load_components('Helper::ResultSet');

1;

package My::App::Schema;

use parent 'DBIx::Class::Schema';

My::App::Schema->load_namespaces(
   default_resultset_class => 'ResultSet',
);

1;

That's it. That's the whole vibe check and it passes βœ…


πŸ’œ AUTHOR πŸ’œ

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> β€” absolute legend, give them their flowers 🌸


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 like, go forth and remix, it's giving open source excellence πŸ’–


And that's the tea β˜• β€” this page came to you from the DBIx::...ultSet(3pm) manual, generated by perl v5.40.0 on 2024-11-16. Go slay some queries, bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from