Doodle::Grammar
Doodle Grammar Base Class
use Doodle::Grammar; my $self = Doodle::Grammar->new(%args);
Doodle::Grammar determines how Command classes should be interpreted to produce the correct DDL statements.
This package implements the following methods.
create_column(Command $command) : Str
Generate SQL statement for column-create Command.
my $create_column = $self->create_column;
create_constraint(Column $column) : Str
Returns the SQL statement for the create constraint command.
$self->create_constraint($column); #
create_index(Command $command) : Str
Generate SQL statement for index-create Command.
my $create_index = $self->create_index;
create_schema(Command $command) : Str
Generate SQL statement for schema-create Command.
my $create_schema = $self->create_schema;
create_table(Command $command) : Str
Generate SQL statement for table-create Command.
my $create_table = $self->create_table;
delete_column(Command $command) : Str
Generate SQL statement for column-delete Command.
my $delete_column = $self->delete_column;
delete_constraint(Column $column) : Str
Returns the SQL statement for the delete constraint command.
$self->delete_constraint($column); #
delete_index(Command $command) : Str
Generate SQL statement for index-delete Command.
my $delete_index = $self->delete_index;
delete_schema(Command $command) : Str
Generate SQL statement for schema-delete Command.
my $delete_schema = $self->delete_schema;
delete_table(Command $command) : Str
Generate SQL statement for table-delete Command.
my $delete_table = $self->delete_table;
exception(Str $message) : ()
Throws an exception using Carp confess.
$self->exception($message);
execute(Command $command) : Statement
Processed the Command and returns a Statement object.
my $statement = $self->execute($command);
rename_column(Command $command) : Str
Generate SQL statement for column-rename Command.
my $rename_column = $self->rename_column;
rename_table(Command $command) : Str
Generate SQL statement for table-rename Command.
my $rename_table = $self->rename_table;
render(Command $command) : Str
Returns the SQL statement for the given Command.
my $sql = $self->render($command);
update_column(Any @args) : Object
Generate SQL statement for column-update Command.
my $update_column = $self->update_column;
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.