RoPkg:...cludes(3pm)
π 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::DBCollectionRoPkg::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::SimbaRoPkg::Simba::ExcludeSQL::Abstract
go read those too, bestie, they're the extended universe. π
π«Ά AUTHOR π«Ά
Subredu Manuel <diablo@iasi.roedu.net>
π LICENSE AND COPYRIGHT π
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
- ubuntu jammy: simba 0.8.4-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms