Alzabo::Create::ColumnDefinition - Column definition object for schema creation
use Alzabo::Create::ColumnDefinition;
This object holds information on a column that might need to be shared with another column. The reason this class exists is that if a column is a key in two or more tables, then some of the information related to that column should change automatically in multiple places whenever it changes at all. Right now this is only type ('VARCHAR', 'NUMBER', etc) and length/precision information. This object also has an 'owner', which is the column which created it.
Alzabo::ColumnDefinition
owner => Alzabo::Create::ColumnDefinition object
Alzabo::Create::ColumnDefinition
type => $type
A new Alzabo::Create::ColumnDefinition object.
This method allows you to change a column's type, length, and precision as a single operation and should be instead of calling set_type followed by set_length.
set_type
set_length
length => $length (optional)
precision => $precision (optional)
Sets the object's type.
length => $length
Sets the column's length and precision. The precision parameter is optional (though some column types may require it if the length is set).
To install Alzabo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alzabo
CPAN shell
perl -MCPAN -e shell install Alzabo
For more information on module installation, please visit the detailed CPAN module installation guide.