Alzabo::Create::Index - Index objects for schema creation
use Alzabo::Create::Index;
Alzabo::Index
table => Alzabo::Create::Table object
Alzabo::Create::Table
The table that this index is indexing.
columns => [ Alzabo::Create::Column object, .. ]
Alzabo::Create::Column
columns => [ { column => Alzabo::Create::Column object, prefix => $prefix }, repeat as needed ... ]
This parameter indicates which columns that are being indexed. It can either be an array reference of column objects, or an array reference of hash references, each with a key called column and one called prefix.
The prefix key is optional.
unique => $boolean
Indicates whether or not this is a unique index.
fulltext => $boolean
Indicates whether or not this is a fulltext index.
A new Alzabo::Create::Index object.
Alzabo::Create::Index
Add a column to the index.
column => Alzabo::Create::Column object
prefix => $prefix (optional)
Delete the given column from the index.
prefix => $prefix
Set whether or not the index is a unique index.
Set whether or not the index is a fulltext index.
The column (with the new name already set).
old_name => $old_name
Called by the owning table object when a column changes. You should never need to call this yourself.
Dave Rolsky, <autarch@urth.org>
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.