index_object:rename() | Tarantool

index_object:rename()

object index_object
index_object:rename(index-name)

Rename an index.

Parameters:
Return:

nil

Possible errors: index_object does not exist.

Example:

tarantool> box.space.space55.index.primary:rename('secondary')
---
...

Complexity factors: Index size, Index type, Number of tuples accessed.

Found what you were looking for?
Feedback