Skip to main content

Schema

Get info about a given table schema.


tableland schema <name>

To understand a table's design, the schema command can be used to retrieve the columns, types, and constraints.

ArgumentTypeDescription
<name>stringThe table's name.

Example

tableland schema cli_demo_table_31337_2

Output:

{
"columns": [
{
"name": "id",
"type": "int",
"constraints": ["primary key"]
},
{
"name": "val",
"type": "text"
}
]
}