SQL::Tr...::Object(3)

πŸ’… NAME

SQL::Translator::Schema::Object β€” the base class for SQL::Translator schema objects, and yes bestie, this is the SQL::Tr...::Object(3) page from the User Contributed Perl Documentation. It’s giving foundational icon energy πŸ‘‘


✨ SYNOPSIS

okay so if you’re making your own schema object, it looks literally like this:

package SQL::Translator::Schema::Foo;
use Moo;
extends 'SQL::Translator::Schema::Object';

slay, you’re extending the base class, no cap πŸŽ€


πŸ¦‹ DESCRIPTION

It’s the base class for Schema objects. Specifically, it’s a Moo class consuming the following roles:

  • SQL::Translator::Role::Error β€” provides $obj->error, similar to Class::Base. very β€œtell me what went wrong” of it πŸ’…
  • SQL::Translator::Role::BuildArgs β€” removes undefined constructor arguments, for backwards compatibility. lowkey cleaning up the group chat before it starts 😭
  • SQL::Translator::Schema::Role::Extra β€” provides an extra attribute storing a hashref of arbitrary data. a little stash for whatever extra vibes you need πŸ“
  • SQL::Translator::Schema::Role::Compare β€” provides an $obj->equals($other) method for testing object equality. matching energy check, fr fr ✨

made with πŸ’– under the User Contributed Perl Documentation banner β€” this one’s from perl v5.42.0, dated 2024-12-12, and it’s the SQL::Tr...::Object(3) manpage. periodt πŸŽ€

πŸ“¦ where this page comes from