Top.Mail.Ru
space_object:rename() | Tarantool
Tarantool
Check out the new release 2.8
Submodule box.space space_object:rename()

space_object:rename()

object space_object
space_object:rename(space-name)

Rename a space.

Parameters:
Return:

nil

Possible errors: space_object does not exist.

Example:

tarantool> box.space.space55:rename('space56')
---
...
tarantool> box.space.space56:rename('space55')
---
...