Alzabo::Create::Index - Index objects for schema creation |
Alzabo::Create::Column
object)Alzabo::Create::Column
object)
Alzabo::Create::Index - Index objects for schema creation
use Alzabo::Create::Index;
This object represents an index on a table. Indexes consist of columns and optional prefixes for each column. The prefix specifies how many characters of the columns should be indexes (the first X chars). Some RDBMS's do not have a concept of index prefixes. Not all column types are likely to allow prefixes though this depends on the RDBMS. The order of the columns is significant.
Alzabo::Index
Note: all relevant documentation from the superclass has been merged into this document.
Alzabo::Create::Table
objectAlzabo::Create::Column
object,
prefix => $prefix },
repeat as needed ...
]
A new Alzabo::Create::Index
object.
The Alzabo::Create::Table
object to which the index
belongs.
An ordered list of the Alzabo::Create::Column
objects
that are being indexed.
Add a column to the index.
Alzabo::Create::Column
object)Delete the given column from the index.
Alzabo::Create::Column
object)A column prefix is, to the best of my knowledge, a MySQL specific concept, and as such cannot be set when using an RDBMSRules module for a different RDBMS. However, it is important enough for MySQL to have the functionality be present. It allows you to specify that the index should only look at a certain portion of a field (the first N characters). This prefix is required to index any sort of BLOB column in MySQL.
This method returns the prefix for the column in the index. If there is no prefix for this column in the index, then it returns undef.
Alzabo::Create::Column
object
A boolean value indicating whether or not the index is a unique index.
Set whether or not the index is a unique index.
A boolean value indicating whether or not the index is a fulltext index.
Set whether or not the index is a fulltext index.
Alzabo::Create::Column
objectCalled by the owning table object when a column changes. You should never need to call this yourself.
The id is generated from the table, column and prefix information for the index. This is useful as a canonical name for a hash key, for example.
A string that is the id for the index.
Dave Rolsky, <autarch@urth.org>
Alzabo::Create::Index - Index objects for schema creation |