RoPkg:...mmands(3pm)

πŸ“¦ version 0.8.4, in ubuntu jammy

πŸŽ€ RoPkg::Simba::Commands πŸŽ€

okay bestie, so this is RoPkg::Simba::Commands β€” a page from the User Contributed Perl Documentation collection, living its best life as a section 3pm manual. Buckle up, we're getting into it πŸ’…


✨ VERSION ✨

0.2.2 β€” that's the vibe, that's the era, she's serving vintage πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

So RoPkg::Simba::Commands is a class β€” a whole entire class β€” and its job? It counts the commands and gets the commands from the database. That's it. That's the gig. Lowkey iconic, highkey essential, no cap πŸ‘‘


🌸 SYNOPSIS 🌸

here's how you actually use her, in all her glory:

 !#/usr/bin/perl

 use RoPkg::DB;
 use RoPkg::Simba::Commands;

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

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

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

 main();

like, yes, that's the whole thing. copy it, run it, slay ✨


🧚 SUBROUTINES/METHODS 🧚

🌈 new()

The class constructor. Right now β€” at this moment, at this exact point in time β€” all it does is call RoPkg::DBObject->new(). That's it. It's giving "middle management", it's giving "delegation queen".

If you wanna know about the new() parameters, you gotta go read the RoPkg::DBObject manual page, bestie. That's where the tea is. πŸ“

🌈 Count($fields)

Returns the number of commands from the database. The $fields parameter holds a list of WHERE clauses β€” and if you want the full deets on $fields, go look at SQL::Abstract. fr fr.

🌈 Get($fields, $orderby)

Returns an array of RoPkg::Simba::Command objects β€” the commands are read straight from the database. The $fields parameter holds a list of WHERE clauses, and for more details on $fields you should see SQL::Abstract. And $orderby? That's a reference to an array holding the fields specification used for sorting the data. Sort it out, literally πŸ’…


πŸ”₯ DIAGNOSTICS πŸ”₯

Unpack the source and use 'make test' command. That's the whole diagnostic situation. go off, test suite 🫢


πŸ’œ CONFIGURATION AND ENVIRONMENT πŸ’œ

This module does not use any configuration files or environment variables. Zero. None. No env vars, no config files, she's self-sufficient, she's her own main character.


⭐ DEPENDENCIES ⭐

  • RoPkg::DBCollection
  • RoPkg::Exceptions

🌸 INCOMPATIBILITIES 🌸

None known to the author 😌


πŸ’€ BUGS AND LIMITATIONS πŸ’€

None know to the author 😭 (that's exactly what it says, we're keeping it verbatim, typos and all, no edits, that's the rule)


πŸ¦‹ PERL CRITIC πŸ¦‹

The code is perl critic level 2 compliant. level 2!! cleanliness is next to godliness bestie ✨


πŸŽ€ SEE ALSO πŸŽ€

  • RoPkg::Simba
  • RoPkg::Simba::Command
  • SQL::Abstract

go read those too, iykyk πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Subredu Manuel <diablo@iasi.roedu.net> β€” the legend, the originator, the blueprint πŸ’–


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. periodt πŸ’…


and that's the whole page, bestie!! this lil manual comes to you from perl v5.28.1, dated 2018-12-09, and it was a whole moment. mwah, take care, hydrate, and go count some commands πŸ’–βœ¨πŸ¦‹πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from