Octopussy::Table(3)

πŸ“¦ version 1.0.6, in ubuntu jammy

πŸ’– 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