GoLang TokyoTyrantTable::setIndex

request it (68)
GoLang replacement for PHP's TokyoTyrantTable::setIndex [edit | history]



Do you know a GoLang replacement for PHP's TokyoTyrantTable::setIndex? Write it!

PHP TokyoTyrantTable::setIndex

PHP original manual for TokyoTyrantTable::setIndex [ show | php.net ]

TokyoTyrantTable::setIndex

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::setIndexSets index

Description

public mixed TokyoTyrantTable::setIndex ( string $column , int $type )

Sets an index on a specified column. The index type is one of the TokyoTyrant::RDBIT_* constants. Passing TokyoTyrant::RDBIT_VOID removes the index.

Parameters

column

The name of the column

type

The index type

Return Values

This method returns the current object and throws TokyoTyrantException on failure.