PHP - Manual: TokyoTyrantTable::setIndex
2024-11-13
(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrantTable::setIndex — Sets index
Sets an index on a specified column. The index type is one of the TokyoTyrant::RDBIT_*
constants.
Passing TokyoTyrant::RDBIT_VOID
removes the index.
column
The name of the column
type
The index type
This method returns the current object and throws TokyoTyrantException on failure.
官方地址:https://www.php.net/manual/en/tokyotyranttable.setindex.php