Alzabo::Runtime(3pm)

πŸ“¦
version 0.92 Β· 2 versions
  • 0.92 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.92 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Alzabo::Runtime β€” okay bestie, this one is literally just the loader that pulls in all the Alzabo::Runtime::* classes πŸ’–


🌸 SYNOPSIS 🌸

use Alzabo::Runtime qw( schema_name );

that's it. that's the whole vibe. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So when you use this module, it goes and loads up the Alzabo::Runtime::* modules for you. no cap. 🫢

And those modules? They're the ones an end user of Alzabo actually uses to instantiate objects that represent the data living in a given schema. like, that's the whole point of them. πŸ’…


πŸ’« import METHOD πŸ’«

Okay so this is the method that gets called when you use this class. πŸ‘‘

You can hand it an array of strings through the use function. Those strings are assumed to be the names of the schema objects you want to load. ✨

Why would you even do that, you ask? Well bestie, it can be genuinely useful if you're running under a mod_perl (or something similar) environment β€” it has the potential to save some memory by preloading the objects before a fork, which hopefully bumps up your shared memory. 🧚 main character optimization energy fr fr.

Not me being the bearer of bad news but… this method explicitly ignores errors that might pop off while trying to load a particular schema. 😭 Which means later attempts to retrieve that schema will probably also fail. πŸ’€

It's done that way on purpose though β€” so that the application that wants a particular schema can explicitly handle the failure later on, on its own terms. periodt. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky, <autarch@urth.org> πŸ“


and that's a wrap, bestie πŸ’œ this page came from perl v5.34.0, dated 2022-06-14, and it's part of the User Contributed Perl Documentation. go forth and load your schemas responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from