Storm::Aeolus(3)

πŸ“¦
version 0.240 Β· 2 versions
, in fedora 43

✨ NAME ✨

Storm::Aeolus β€” bestie, this is the module that installs your classes to the database πŸ’… (also, hi, you're reading a User Contributed Perl Documentation page, and it's iconic of you to be here).


πŸ¦‹ SYNOPSIS πŸ¦‹

$storm->aeolus->install_class_table( 'Person' );

$storm->aeolus->install_junction_tables( 'Person' );

$storm->aeolus->install_class( 'Person' );

🌬️ DESCRIPTION 🌬️

Okay so, lore time: Aeolus is the Greek god of the winds. And Storm::Aeolus? It can literally introspect your object classes and create the appropriate definitions in the database for you. Main character energy fr fr 🫢

One thing though β€” it is important you setup a policy (see Storm::Policy) for any custom types you have created. Not optional, not a vibe check you skip. Do it.


πŸŽ€ ATTRIBUTES πŸŽ€

  • storm β€” the Storm storm instance that Aeolus should act on. That's the one it does all its work for πŸ’–

πŸ’… METHODS πŸ’…

  • backup_class $class, $filehandle, [\%opts] β€” backs up the data for an entire class and writes it to the supplied filehandle (yes, the original says "supplised fielhandle", we love a typo, we keep it, no cap πŸ™ˆ). Note the optional \%opts β€” it's in brackets, so it's optional.

Also, ngl, sitting right here in the source is this literal line, and we are reporting it exactly as it appears, pod quirk and all:

= item backup_class_table $class, $filehandle, [\%opts]

That's it. That's the whole thing. πŸ’€

  • install_class $class β€” installs the all necessary tables for storing the class, by calling install_class_table and install_junction_tables on the $class. It's the combo meal πŸ“
  • install_class_table $class β€” installs the primary data table for the $class. The main one. The star. πŸ‘‘
  • install_junction_tables $class β€” installs any junction tables necessary to store relationship information between objects. Shipping them together, as one does 🌈
  • install_model $class β€” calls install_class for all members of the model. It's giving "I'll do it for everyone, don't worry" 😭

πŸ’œ AUTHOR πŸ’œ

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>


Copyright (c) 2010 Jeffrey Ray Hallock. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

Okay that's the whole page bestie, you ate that 🫢 This was Storm::Aeolus(3) from perl v5.42.0, dated 2025-07-25 β€” go install some class tables and slay, periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from