use Moose;
use MooseX::Types::Moose qw(Str);
use SQL::Translator::Types qw(DBIHandle);
-#extends 'SQL::Translator';
my $apply_role_dbi = sub {
my $self = shift;
trigger => $apply_role_dbi,
);
-has 'ddl' => (
+has 'filename' => (
isa => Str,
is => 'ro',
predicate => 'has_ddl',
sub BUILD {}
-after BUILD => sub {
+sub parse {
my $self = shift;
my $schema = SQL::Translator::Object::Schema->new({ name => $self->schema_name });
$self->_add_tables($schema);
- use Data::Dumper;
- print Dumper($schema);
-};
+ $schema;
+}
__PACKAGE__->meta->make_immutable;