Octopussy::Table(3)
π NAME π
Octopussy::Table β it's the Octopussy Table module, bestie. That's the whole name, no notes. If you're here, you're doing Table things in Octopussy, and we're gonna walk through every single function together. All of them. No skipping, no skimming, no "eh I'll figure it out". Periodt. π
π FUNCTIONS π
okay so here's the full roster, one by one, in order, exactly as the source gives them. grab a snack, this is a long one but it's so worth it π
π¦ New(\%conf)
Creates a new Table with configuration $conf. Fresh start, main character energy, love that for you β¨
Parameters:
\%confβ hashref of the new Table configuration
π Clone($table, $cloned_table)
No description in the source for this one, bestie β she's giving mysterious π but the signature is right there: $table and $cloned_table. That's the tea.
π Remove($table)
Removes the Table $table. Gone. Deleted. Not coming back π
Parameters:
$serviceβ Name of the Table to remove
and yes, the parameter is literally called $service even though this function is about Tables. We don't make the rules, we just report them faithfully π«Ά
πΈ List()
Get the List of Tables. That's it, that's the whole thing, and honestly? Iconic. π
π§ Filename($table)
Get the XML filename for the Table $table.
β Configuration($table)
Get the configuration for the Table $table.
π Configurations($sort)
Get the configuration for all Tables. Yes, plural, all of them, with $sort doing its thing.
π Add_Field($table, $fieldname, $fieldtype)
Adds Field $fieldname of type $fieldtype to Table $table. New field just dropped β¨
π Remove_Field($table, $fieldname)
Removes Field $fieldname from Table $table. rip little field π
π¦ Fields($table)
Gets fields from Table $table.
π Fields_Configurations($table, $sort)
Gets the configuration for all Fields β with $table and $sort along for the ride.
β¨ SQL($table, $fields, $indexes)
Generates SQL code to create the Table $table. Slay, we love a code generator π
πΈ Field_Type_List($table, $type)
Gets field list from Table $table where Field type is $type.
π₯ Devices_and_Services_With($table)
Returns one arrayref of devicegroups, one of devices and one of services which contains messages with Table $table. Three arrayrefs, one function, very efficient of her honestly β
π§ Valid_Pattern($table, $pattern)
No description given in the source, bestie β signature only: $table and $pattern. She keeps her secrets π
π« Updates_Installation(@tables)
Also no description in the source. Just @tables, sitting there, being a list. Iykyk π
π Update_Get_Fields($table)
No description in the source either. Signature: $table. That's all we got π«Ά
π Updates_Diff($table)
Same situation β no description in the source. Signature: $table. Mysterious queen behavior π
β Valid_Name($name)
Checks that $name is valid for a Table name. Your name-checking bestie, making sure nothing cursed gets through π
π AUTHOR π
Sebastien Thebert <octo.devel@gmail.com> β the legend behind all of this. Respect. π«Ά
and that's a wrap, bestie!! this page came straight out of the User Contributed Perl Documentation, riding on perl v5.22.2 and dated 2016-05-04. go make some Tables, you've got this, mwah π β¨ππ¦
π¦ where this page comes from
- ubuntu jammy: octopussy 1.0.6-0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms