1 package SQL::Translator::Schema::Role::Compare;
5 SQL::Translator::Schema::Role::Compare - compare objects
11 with qw(SQL::Translator::Schema::Role::Compare);
17 This L<Moo::Role> provides a method to compare if two objects are the
28 Determines if this object is the same as another.
30 my $isIdentical = $object1->equals( $object2 );
38 return 0 unless $other;
39 return 1 if overload::StrVal($self) eq overload::StrVal($other);
40 return 0 unless $other->isa( ref($self) );
44 sub _compare_objects {
45 # my ($self, $obj1, $obj2) = @_;
48 Data::Dumper->new([$_[1]])->Terse(1)->Indent(0)->Deparse(1)->Sortkeys(1)->Maxdepth(0)->Dump
50 Data::Dumper->new([$_[2]])->Terse(1)->Indent(0)->Deparse(1)->Sortkeys(1)->Maxdepth(0)->Dump
54 # cluck("How did I get here?");
56 # $Data::Dumper::Maxdepth = 1;
57 # print "obj1: ", Dumper($obj1), "\n";
58 # print "obj2: ", Dumper($obj2), "\n";