RoPkg:...cludes(3pm)

πŸ“¦ version 0.8.4, in ubuntu jammy

πŸ’– RoPkg::Simba::Excludes πŸ’–

okay bestie, welcome to the RoPkg:...cludes page β€” yeah that's the truncated name, it's giving "my terminal was too narrow", but the real one is RoPkg::Simba::Excludes, and it lives in the User Contributed Perl Documentation corner of the 3pm section. Sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

RoPkg::Simba::Excludes β€” that's the whole name, that's the whole vibe.


🌸 VERSION 🌸

0.2.2 β€” tiny number, big energy. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So RoPkg::Simba::Excludes is a class. It counts the excludes in the database, and it gets the excludes from the database. That's the job. That's the whole job. She's a specialist, she's not doing extra credit. πŸ‘‘


✨ SYNOPSIS ✨

here's the tea, here's the actual code, do not touch a single character of it, she is perfect:

 !#/usr/bin/perl

 use RoPkg::DB;
 use RoPkg::Simba::Excludes;

 sub main {
   my $dbp = new RoPkg::DB();
   $dbp->Add('dbi:mysql:database=mysql;host=localhost',
             'root',
             '',
             'local');

   my $m = new RoPkg::Simba::Excludes(dbo => $dbp, dbo_method => 'db_local');

   print $m->Count,' excludes found in database',$/;
 }

 main();

so you make a DB, you add a connection, you make an Excludes object with dbo and dbo_method, and you print the count. main character behaviour, honestly. 🌟


πŸ’œ SUBROUTINES/METHODS πŸ’œ

πŸŽ€ new()

the class constructor, bestie. at this moment β€” and yes that's the official energy β€” it literally just calls RoPkg::DBObject->new(). that's it. go read the RoPkg::DBObject manual page if you wanna know what params new() takes, because this one's not gonna spell it out for you. 🫢

🌈 Count($fields)

returns the number of excludes from the database. $fields is a list of WHERE clauses β€” and if you want the whole lore on $fields, that's SQL::Abstract's department. go look it up, iykyk. πŸ”₯

⭐ Get($fields, $orderby)

returns an array of RoPkg::Simba::exclude list objects, freshly read from the database. $fields is, again, a list of WHERE clauses (more details β†’ SQL::Abstract). and $orderby is a reference to an array holding the fields specification used for sorting the data. sorting!! we love a lil organisation moment. 🧚


🩺 DIAGNOSTICS 🩺

unpack the source, and use the make test command. that's the diagnostic situation. run the tests, bestie. πŸ§ͺ


🌸 CONFIGURATION AND ENVIRONMENT 🌸

this module uses no configuration files and no environment variables. zero. none. not a single one. clean girl aesthetic. ✨


πŸ¦‹ DEPENDENCIES πŸ¦‹

  • RoPkg::DBCollection
  • RoPkg::Exceptions

these two are riding with her. πŸ’–


πŸ’… INCOMPATIBILITIES πŸ’…

None known to the author. periodt. πŸ’€


πŸ”₯ BUGS AND LIMITATIONS πŸ”₯

None known to the author. iconic behaviour, no notes. πŸ‘‘


🌟 PERL CRITIC 🌟

this module is perl critic level 2 compliant. she's tidy, she's clean, she passed the vibe check. πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

  • RoPkg::Simba
  • RoPkg::Simba::Exclude
  • SQL::Abstract

go read those too, bestie, they're the extended universe. πŸŽ€


🫢 AUTHOR 🫢

Subredu Manuel <diablo@iasi.roedu.net>


Copyright (C) 2005 Subredu Manuel. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.

no cap, that's the actual legal text β€” keep it exactly like that if you're copying this around. πŸ“Ž

and that's the page, babes πŸ’– this was perl v5.28.1, dated 2018-12-09, and yeah the title up top still reads RoPkg:...cludes(3pm) because some things are simply too long for a header line. slay. πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from