package SQL::Translator::Schema;
-# vim: sw=4: ts=4:
-
# ----------------------------------------------------------------------
-# $Id: Schema.pm,v 1.26 2006-06-07 16:43:41 schiffbruechige Exp $
+# $Id: Schema.pm 1440 2009-01-17 16:31:57Z jawnsy $
# ----------------------------------------------------------------------
-# Copyright (C) 2002-4 SQLFairy Authors
+# Copyright (C) 2002-2009 SQLFairy Authors
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
use SQL::Translator::Schema::Table;
use SQL::Translator::Schema::Trigger;
use SQL::Translator::Schema::View;
-use SQL::Translator::Schema::Graph;
+
use SQL::Translator::Utils 'parse_list_arg';
use base 'SQL::Translator::Schema::Object';
-use vars qw[ $VERSION $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ];
-
-$VERSION = sprintf "%d.%02d", q$Revision: 1.26 $ =~ /(\d+)\.(\d+)/;
+use vars qw[ $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ];
__PACKAGE__->_attributes(qw/name database translator/);
Returns the schema as an L<SQL::Translator::Schema::Graph> object.
=cut
+ require SQL::Translator::Schema::Graph;
my $self = shift;
+
return SQL::Translator::Schema::Graph->new(
translator => $self->translator );
}
=pod
-=head2 as_grap_pmh
+=head2 as_graph_pm
Returns a Graph::Directed object with the table names for nodes.
=cut
+ require Graph::Directed;
+
my $self = shift;
my $g = Graph::Directed->new;