【问题标题】:How to see the format of the space in the Tarantool?如何查看 Tarantool 中空间的格式?
【发布时间】:2020-09-23 21:52:59
【问题描述】:

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

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

【问题讨论】:

    标签: lua tarantool


    【解决方案1】:

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

    box.space.test:format()
    
    

    可能的结果:

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

    阅读更多信息in the documentation.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-29
      • 2020-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-24
      • 1970-01-01
      相关资源
      最近更新 更多