Doodle::Table
Doodle Table Class
use Doodle::Table; my $self = Doodle::Table->new( name => 'users' );
Database table representation. This class consumes the Doodle::Table::Helpers role.
This package implements the following methods.
column(Str $name, Any @args) : Column
Returns a new Column object.
my $column = $self->column;
create(Any %args) : Command
Registers a table create and returns the Command object.
my $create = $self->create;
delete(Any %args) : Command
Registers a table delete and returns the Command object.
my $delete = $self->delete;
index(ArrayRef :$columns, Any %args) : Index
Returns a new Index object.
my $index = $self->index(columns => ['email', 'password']);
relation(Str $column, Str $ftable, Str $fcolumn, Any %args) : Relation
Returns a new Relation object.
my $relation = $self->relation('profile_id', 'profiles', 'id');
rename(Any %args) : Command
Registers a table rename and returns the Command object.
my $rename = $self->rename;
To install Doodle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Doodle
CPAN shell
perl -MCPAN -e shell install Doodle
For more information on module installation, please visit the detailed CPAN module installation guide.