return wantarray ? @sizes
: join ',', @sizes;
}
+
+ method order { }
+ method is_unique { }
}
use MooseX::Declare;
class SQL::Translator::Object::Constraint {
- use MooseX::Types::Moose qw(HashRef Maybe Str);
+ use MooseX::Types::Moose qw(ArrayRef Bool HashRef Maybe Str);
use MooseX::AttributeHelpers;
use SQL::Translator::Types qw(Column);
extends 'SQL::Translator::Object';
required => 1
);
+ has 'deferrable' => (
+ is => 'rw',
+ isa => Bool,
+ default => 0
+ );
+
+ has 'expression' => (
+ is => 'rw',
+ isa => Str,
+ );
+
+ has 'options' => (
+ is => 'rw',
+ isa => ArrayRef,
+ auto_deref => 1
+ );
+
+ has 'extra' => (
+ is => 'rw',
+ isa => HashRef,
+ auto_deref => 1,
+ );
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
+ method field_names { return $self->column_ids }
+
+ method match_type { }
}
use MooseX::Declare;
class SQL::Translator::Object::Index {
- use MooseX::Types::Moose qw(HashRef Str);
+ use MooseX::Types::Moose qw(ArrayRef HashRef Str);
use MooseX::AttributeHelpers;
use SQL::Translator::Types qw(Column);
extends 'SQL::Translator::Object';
required => 1
);
+ has 'options' => (
+ is => 'rw',
+ isa => ArrayRef,
+ auto_deref => 1
+ );
+
+ has 'extra' => (
+ is => 'rw',
+ isa => HashRef,
+ auto_deref => 1,
+ );
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
}
);
method is_valid { 1 }
+
+ method order { }
+ method perform_action_when { }
+ method database_events { }
+ method fields { }
+ method on_table { }
+ method action { }
+ method extra { }
}
use MooseX::Declare;
class SQL::Translator::Object::Table {
- use MooseX::Types::Moose qw(Bool HashRef Maybe Str);
+ use MooseX::Types::Moose qw(ArrayRef Bool HashRef Maybe Str);
use MooseX::AttributeHelpers;
use SQL::Translator::Types qw(Column Constraint Index Schema Sequence);
use SQL::Translator::Object::Schema;
default => 0
);
+ has 'options' => (
+ is => 'rw',
+ isa => ArrayRef,
+ auto_deref => 1
+ );
+
method get_fields { return $self->get_columns }
+ method fields { return $self->column_ids }
method primary_key(Str $column) {
$self->get_column($column)->is_primary_key(1);
}
+
+ method order { }
}
isa => Str,
required => 1
);
+
+ method get_fields { return $self->get_columns }
+ method fields { return $self->column_ids }
}