Class:...er::Pg(3pm)

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

πŸ’– NAME πŸ’–

ok so this is Class::DBI::Loader::Pg β€” the Postgres implementation of Class::DBI::Loader. bestie, that's it, that's the whole personality. she loads your Postgres tables into Perl classes and she does it flawlessly πŸ’…

also hi, the man page itself is filed under the name Class:...er::Pg(3pm) (yes the title got squished, we don't talk about it 😭) and it lives in the User Contributed Perl Documentation section. iconic placement fr.


✨ SYNOPSIS ✨

here's the whole vibe, no notes:

use Class::DBI::Loader;

# $loader is a Class::DBI::Loader::Pg
my $loader = Class::DBI::Loader->new(
  dsn       => "dbi:Pg:dbname=dbname",
  user      => "postgres",
  password  => "",
  namespace => "Data",
);
my $class = $loader->find_class('film'); # $class => Data::Film
my $obj = $class->retrieve(1);

ok so real talk: that $loader you just made? she IS a Class::DBI::Loader::Pg 🫢 and that's the comment right there in the code telling you so, so you know it's true.


🌸 DESCRIPTION 🌸

go read Class::DBI::Loader and Class::DBI::Loader::Generic, that's where the actual lore is πŸ“š this page is just the Postgres-flavored girlie of the family. she said "my backstory? ask my siblings" πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

  • Class::DBI::Loader β€” the parent vibe
  • Class::DBI::Loader::Generic β€” the generic sibling

ok that's the page!! perl v5.36.0, dated 2022-12-07 β€” shoutout to the version and the date, they showed up and served ⭐ ily, go write some classes bestie πŸ’œπŸŽ€

πŸ“¦ where this page comes from