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