Scroll to navigation

SQL::Translator::Schema::Object(3) User Contributed Perl Documentation SQL::Translator::Schema::Object(3)

NAME

SQL::Translator::Schema::Object - Base class for SQL::Translator schema objects

SYNOPSIS

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

DESCRIPTION

Base class for Schema objects. A Moo class consuming the following roles.

Provides "$obj->error", similar to Class::Base.
Removes undefined constructor arguments, for backwards compatibility.
Provides an "extra" attribute storing a hashref of arbitrary data.
Provides an "$obj->equals($other)" method for testing object equality.
2024-03-08 perl v5.40.0