1 package SQL::Translator::Schema::Graph::Edge;
5 use vars qw[ $VERSION ];
8 use Class::MakeMethods::Template::Hash (
10 scalar => [qw( type )],
11 array => [qw( traversals )],
13 'thisfield' => { class => 'SQL::Translator::Schema::Field' }, #FIXME
14 'thatfield' => { class => 'SQL::Translator::Schema::Field' }, #FIXME
15 'thisnode' => { class => 'SQL::Translator::Schema::Graph::Node' },
16 'thatnode' => { class => 'SQL::Translator::Schema::Graph::Node' },
24 return SQL::Translator::Schema::Graph::Edge->new(
25 thisfield => $self->thatfield,
26 thatfield => $self->thisfield,
27 thisnode => $self->thatnode,
28 thatnode => $self->thisnode,
29 type => $self->type eq 'import' ? 'export' : 'import'