1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
package SQL::Translator::Schema::Object;
=head1 NAME
SQL::Translator::Schema::Object - Base class for SQL::Translator schema objects
=head1 SYNOPSIS
package SQL::Translator::Schema::Foo;
use Moo;
extends 'SQL::Translator::Schema::Object';
=head1 DESCRIPTION
Base class for Schema objects. A Moo class consuming the following
roles.
=over
=item L<SQL::Translator::Role::Error>
Provides C<< $obj->error >>, similar to L<Class::Base>.
=item L<SQL::Translator::Role::BuildArgs>
Removes undefined constructor arguments, for backwards compatibility.
=item L<SQL::Translator::Schema::Role::Extra>
Provides an C<extra> attribute storing a hashref of arbitrary data.
=item L<SQL::Translator::Schema::Role::Compare>
Provides an C<< $obj->equals($other) >> method for testing object
equality.
=back
=cut
use Moo 1.000003;
# screw you PAUSE
our $VERSION = '1.59';
with qw(
SQL::Translator::Role::Error
SQL::Translator::Role::BuildArgs
SQL::Translator::Schema::Role::Extra
SQL::Translator::Schema::Role::Compare
);
1;
|