Search code examples
luatarantool

How to see the format of the space in the Tarantool?


I have a space in Tarantool and want to see the format.

I've overlooked the documentation but didn't see it.


Solution

  • You can view a schema of the space via Box API:

    box.space.test:format()
    
    

    Possible result:

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

    Read more about it in the documentation.