如何在Tarantool中查看空间的格式?

问题描述

我在Tarantool中有一个空格,想要查看格式。

我忽略了文档,但没有看到它。

解决方法

您可以通过Box API查看空间的架构:

box.space.test:format()

可能的结果:

---
- [{'name': 'surname','type': 'string'},{'name': 'age','type': 'any'}]
...

详细了解in the documentation.