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 toClass::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 anextraattribute 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
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms