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

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

我查阅了文档,但没有找到。

点赞
用户10792439
用户10792439

你可以通过 Box API 查看空间的 schema:

box.space.test:format()

可能的结果:

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

文档中阅读更多相关信息。

2020-09-23 13:52:59