DBIx::DBSchema::Index - Index objects
use DBIx::DBSchema::Index; $index = new DBIx::DBSchema::Index ( { } );
DBIx::DBSchema::Index objects represent a unique or non-unique database index.
Creates a new DBIx::DBschema::Index object.
Accepts either a hashref or a list of options and values.
Options are:
Returns or sets the index name.
Returns or sets the optional index method.
Returns or sets the unique flag.
Returns or sets the indexed columns (or expressions).
Returns a comma-joined list of columns, suitable for an SQL statement.
Returns an SQL statment to create this index on the specified table.
Compares this object to another supplied object. Returns true if they are identical, or false otherwise.
Compares this object to another supplied object. Returns true if they are identical, disregarding index name, or false otherwise.
Ivan Kohler <ivan-dbix-dbschema@420.am>
Copyright (c) 2007 Ivan Kohler Copyright (c) 2007 Freeside Internet Services, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Is there any situation in which sql_create_index needs to return a list of multiple statements?
DBIx::DBSchema::Table, DBIx::DBSchema, DBI
To install DBIx::DBSchema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::DBSchema
CPAN shell
perl -MCPAN -e shell install DBIx::DBSchema
For more information on module installation, please visit the detailed CPAN module installation guide.