Tarantool CE/EE Documentation portal logo
Помощь
Обновлена 15 сентября 2026 г. в 08:55

alter

alter(options)

Параметры:

  • options (table) — параметры спейса, такие как field_count, user, format, name и другие. Полный список этих параметров с описаниями приведен в box.schema.space.create()

Возвращает

ничего при успешном выполнении; ошибка при неудаче

tarantool> s = box.schema.create_space('tester')---...tarantool> format = {{name = 'field1', type = 'unsigned'}}---...tarantool> s:alter({name = 'tester1', format = format})---...tarantool> s.name---- tester1...tarantool> s:format()---- [{'name': 'field1', 'type': 'unsigned'}]...