Class:...Generic(3pm)

πŸ“¦
version 0.34 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Class::DBI::Loader::Generic β€” the generic Class::DBI::Loader implementation, bestie πŸ’… like it's the blueprint everyone else copies from.


🌸 SYNOPSIS 🌸

okay so this one doesn't do the whole song and dance by itself, it just points you at its parent:

See Class::DBI::Loader

that's it. that's the synopsis. iconic minimalism honestly πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

nothing here fr fr πŸ™ˆ the real tea lives down in METHODS, so scroll, bestie ⬇️


πŸ‘‘ METHODS πŸ‘‘

πŸ’– new %args

go read the docs for "Class::DBI::Loader->new()" β€” that's where the actual constructor lore lives, iykyk ✨


πŸ’– find_class

returns a table's class. like, hand it a table, get the class back 🫢

my $class = $loader->find_class($table);

πŸ’– classes

returns a sorted list of classes. sorted!! not vibes-based ordering, actual sorting ⭐

my $@classes = $loader->classes;

πŸ’– debug

overload this one if you wanna turn on debug messages πŸ‘€ lowkey the move when something's acting up and you need the receipts.


πŸ’– tables

returns a sorted list of tables. again with the sorting, we love a consistent queen πŸ’…

my @tables = $loader->tables;

🌈 SEE ALSO 🌈

go be nosy, these are all the siblings:

  • Class::DBI::Loader
  • Class::DBI::Loader::mysql
  • Class::DBI::Loader::Pg
  • Class::DBI::Loader::SQLite

and that's a wrap, bestie πŸ’œ this lil page came from perl v5.36.0, dated 2022-12-07, and it's part of the User Contributed Perl Documentation β€” go forth and load some classes, you got this πŸ§šπŸ’–

πŸ“¦ where this page comes from