Alzabo::Create::Column - Column objects for use in schema creation
use Alzabo::Create::Column;
This object represents a column. It holds data specific to a column. Additional data is held in a Alzabo::Create::ColumnDefinition object, which is used to allow two columns to share a type (which is good when two columns in different tables are related as it means that if the type of one is changed, the other is also.)
Alzabo::Create::ColumnDefinition
Alzabo::Column
table => Alzabo::Create::Table object
Alzabo::Create::Table
name => $name
nullable => 0 or 1 (optional)
Defaults to false.
sequenced => 0 or 1 (optional)
default => $default (optional)
attributes => \@attributes (optional)
length => $length (optional)
precision => $precision (optional)
One of either ...
type => $type
... or ...
definition => Alzabo::Create::ColumnDefinition object
comment => $comment
An optional comment.
A new Alzabo::Create::Column object.
Alzabo::Create::Column
Alzabo::Exception::Params
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
Sets the column's type.
Returns/sets the Alzabo::Create::Table object in which this column is located.
Returns/sets the column's name (a string).
Sets the nullability of the column (this determines whether nulls are allowed in the column or not). Must be 0 or 1.
Sets the column's attributes. These are strings describing the column (for example, valid attributes in MySQL are "PRIMARY KEY" or "AUTO_INCREMENT").
Add an attribute to the column's list of attributes.
Delete the given attribute from the column's list of attributes.
Sets the column's default value.
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).
Sets the value of the column's sequenced attribute.
Sets the Alzabo::Create::ColumnDefinition object which holds this column's type information.
Set the comment for the column object.
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.