From: Justin Hunter Date: Sat, 6 Jun 2009 18:08:31 +0000 (-0700) Subject: oops, these really do have content X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cc73c25e23e61e379a16094712a534d1103c4d77;p=dbsrgits%2FSQL-Translator-2.0-ish.git oops, these really do have content --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index 78a0041..7dba944 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -1,3 +1,4 @@ package SQL::Translator; +use Moose; 1; diff --git a/lib/SQL/Translator/Object.pm b/lib/SQL/Translator/Object.pm index 8e80f8b..d9a7435 100644 --- a/lib/SQL/Translator/Object.pm +++ b/lib/SQL/Translator/Object.pm @@ -1,4 +1,5 @@ package SQL::Translator::Object; -use base 'SQL::Translator'; +use Moose; +extends 'SQL::Translator'; 1; diff --git a/lib/SQL/Translator/Object/Column.pm b/lib/SQL/Translator/Object/Column.pm index 68ed5e8..4ab81f3 100644 --- a/lib/SQL/Translator/Object/Column.pm +++ b/lib/SQL/Translator/Object/Column.pm @@ -2,6 +2,7 @@ package SQL::Translator::Object::Column; use Moose; use MooseX::Types::Moose qw(Bool Int Str); use SQL::Translator::Types qw(Trigger); +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); has 'type' => (is => 'ro', isa => Str, required => 1); diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index 4713b9d..f7458ad 100644 --- a/lib/SQL/Translator/Object/Constraint.pm +++ b/lib/SQL/Translator/Object/Constraint.pm @@ -2,6 +2,7 @@ package SQL::Translator::Object::Constraint; use Moose; use MooseX::Types::Moose qw(ArrayRef Str); use SQL::Translator::Types qw(Column); +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); has 'columns' => (is => 'ro', isa => ArrayRef[Column], required => 1); diff --git a/lib/SQL/Translator/Object/Index.pm b/lib/SQL/Translator/Object/Index.pm index e3e4eea..ff84642 100644 --- a/lib/SQL/Translator/Object/Index.pm +++ b/lib/SQL/Translator/Object/Index.pm @@ -2,6 +2,7 @@ package SQL::Translator::Object::Index; use Moose; use MooseX::Types::Moose qw(ArrayRef Str); use SQL::Translator::Types qw(Column); +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); has 'columns' => (is => 'ro', isa => ArrayRef[Column], required => 1); diff --git a/lib/SQL/Translator/Object/Procedure.pm b/lib/SQL/Translator/Object/Procedure.pm index 4cabee8..07397bd 100644 --- a/lib/SQL/Translator/Object/Procedure.pm +++ b/lib/SQL/Translator/Object/Procedure.pm @@ -3,6 +3,7 @@ use Moose; use MooseX::Types::Moose qw(Str); use SQL::Translator::Types qw(); use SQL::Translator::Object::Schema; +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); has 'contents' => (is => 'ro', isa => Str, required => 1); diff --git a/lib/SQL/Translator/Object/Schema.pm b/lib/SQL/Translator/Object/Schema.pm index 88710d2..411bc20 100644 --- a/lib/SQL/Translator/Object/Schema.pm +++ b/lib/SQL/Translator/Object/Schema.pm @@ -2,6 +2,7 @@ package SQL::Translator::Object::Schema; use Moose; use MooseX::Types::Moose qw(ArrayRef Str); use SQL::Translator::Types qw(Procedure Table View); +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1, default => '__DEFAULT__'); has 'tables' => (is => 'ro', isa => ArrayRef[Table], required => 0); diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 62baaab..3026d40 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -3,6 +3,7 @@ use Moose; use MooseX::Types::Moose qw(ArrayRef Str); use SQL::Translator::Types qw(Column Constraint Index Schema); use SQL::Translator::Object::Schema; +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); has 'columns' => (is => 'ro', isa => ArrayRef[Column], required => 1); diff --git a/lib/SQL/Translator/Object/Trigger.pm b/lib/SQL/Translator/Object/Trigger.pm index d752c86..d3139dc 100644 --- a/lib/SQL/Translator/Object/Trigger.pm +++ b/lib/SQL/Translator/Object/Trigger.pm @@ -2,6 +2,7 @@ package SQL::Translator::Object::Trigger; use Moose; use MooseX::Types::Moose qw(Str); use SQL::Translator::Types qw(); +extends 'SQL::Translator::Object'; has 'name' => (is => 'ro', isa => Str, required => 1); diff --git a/lib/SQL/Translator/Object/View.pm b/lib/SQL/Translator/Object/View.pm index 7c45d8d..352df64 100644 --- a/lib/SQL/Translator/Object/View.pm +++ b/lib/SQL/Translator/Object/View.pm @@ -2,7 +2,6 @@ package SQL::Translator::Object::View; use Moose; use MooseX::Types::Moose qw(ArrayRef); use SQL::Translator::Types qw(); - extends 'SQL::Translator::Object::Table'; has 'sql' => (is => 'ro', isa => Str, required => 1); diff --git a/lib/SQL/Translator/Parser.pm b/lib/SQL/Translator/Parser.pm index e69de29..ff055b5 100644 --- a/lib/SQL/Translator/Parser.pm +++ b/lib/SQL/Translator/Parser.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser; +use Moose; +extends 'SQL::Translator'; + +1; diff --git a/lib/SQL/Translator/Parser/DBI/MySQL.pm b/lib/SQL/Translator/Parser/DBI/MySQL.pm index e69de29..993fb6b 100644 --- a/lib/SQL/Translator/Parser/DBI/MySQL.pm +++ b/lib/SQL/Translator/Parser/DBI/MySQL.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::DBI::MySQL; +use Moose; +extends 'SQL::Translator::Parser::DBI'; + +1; diff --git a/lib/SQL/Translator/Parser/DBI/Oracle.pm b/lib/SQL/Translator/Parser/DBI/Oracle.pm index e69de29..94fa930 100644 --- a/lib/SQL/Translator/Parser/DBI/Oracle.pm +++ b/lib/SQL/Translator/Parser/DBI/Oracle.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::DBI::Oracle; +use Moose; +extends 'SQL::Translator::Parser::DBI'; + +1; diff --git a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm index e69de29..68f68da 100644 --- a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::DBI::PostgreSQL; +use Moose; +extends 'SQL::Translator::Parser::DBI'; + +1; diff --git a/lib/SQL/Translator/Parser/DBI/SQLite.pm b/lib/SQL/Translator/Parser/DBI/SQLite.pm index e69de29..532599f 100644 --- a/lib/SQL/Translator/Parser/DBI/SQLite.pm +++ b/lib/SQL/Translator/Parser/DBI/SQLite.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::DBI::SQLite; +use Moose; +extends 'SQL::Translator::Parser::DBI'; + +1; diff --git a/lib/SQL/Translator/Parser/DBI/Sybase.pm b/lib/SQL/Translator/Parser/DBI/Sybase.pm index e69de29..f8868c9 100644 --- a/lib/SQL/Translator/Parser/DBI/Sybase.pm +++ b/lib/SQL/Translator/Parser/DBI/Sybase.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::DBI::Sybase; +use Moose; +extends 'SQL::Translator::Parser::DBI'; + +1; diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index e69de29..36ce6c3 100644 --- a/lib/SQL/Translator/Parser/MySQL.pm +++ b/lib/SQL/Translator/Parser/MySQL.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::MySQL; +use Moose; +extends 'SQL::Translator::Parser'; + +1; diff --git a/lib/SQL/Translator/Parser/Oracle.pm b/lib/SQL/Translator/Parser/Oracle.pm index e69de29..12c7bf1 100644 --- a/lib/SQL/Translator/Parser/Oracle.pm +++ b/lib/SQL/Translator/Parser/Oracle.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::Oracle; +use Moose; +extends 'SQL::Translator::Parser'; + +1; diff --git a/lib/SQL/Translator/Parser/PostgreSQL.pm b/lib/SQL/Translator/Parser/PostgreSQL.pm index e69de29..7d62791 100644 --- a/lib/SQL/Translator/Parser/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/PostgreSQL.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::PostgreSQL; +use Moose; +extends 'SQL::Translator::Parser'; + +1; diff --git a/lib/SQL/Translator/Parser/SQLite.pm b/lib/SQL/Translator/Parser/SQLite.pm index e69de29..32974eb 100644 --- a/lib/SQL/Translator/Parser/SQLite.pm +++ b/lib/SQL/Translator/Parser/SQLite.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::SQLite; +use Moose; +extends 'SQL::Translator::Parser'; + +1; diff --git a/lib/SQL/Translator/Parser/Sybase.pm b/lib/SQL/Translator/Parser/Sybase.pm index e69de29..ace1f26 100644 --- a/lib/SQL/Translator/Parser/Sybase.pm +++ b/lib/SQL/Translator/Parser/Sybase.pm @@ -0,0 +1,5 @@ +package SQL::Translator::Parser::Sybase; +use Moose; +extends 'SQL::Translator::Parser'; + +1;