SQL::Translator::Schema::IndexField - SQL::Translator index field object
SQL::Translator::Schema::IndexField is the index field object.
SQL::Translator::Schema::IndexField
Different databases allow for different options on index fields. Those are supported through here
Object constructor.
my $schema = SQL::Translator::Schema::IndexField->new;
The name of the index. The object stringifies to this. In addition, you can simply pass a string to the constructor to only set this attribute.
All options for the field are stored under the extra hash. The constructor will collect them for you if passed in straight. In addition, an accessor is provided for all supported options
Currently supported options:
Supported by MySQL. Indicates that only N characters of the column are indexed.
Veesh Goldman <veesh@cpan.org>.
To install SQL::Translator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Translator
CPAN shell
perl -MCPAN -e shell install SQL::Translator
For more information on module installation, please visit the detailed CPAN module installation guide.