Previous Page
connect()

Solar_Sql_Adapter_Mysql
createIndex()

Next Page
createSequence()

createIndex()

public void createIndex ( string $table, string $name, bool $unique default false, array $cols default NULL )

Creates a portable index on a table.

Inherited from Solar_Sql_Adapter.

Parameters

  • (string) $table: The name of the table for the index.
  • (string) $name: The name of the index.
  • (bool) $unique: Whether or not the index is unique.
  • (array) $cols: The columns in the index. If empty, uses the $name parameters as the column name.

Returns

  • (void)

Description

Creates a portable index on a table.