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.
Argument | Type | Description |
---|---|---|
<name> | string | The table's name. |
Example
tableland schema cli_demo_table_31337_2
Output:
{
"columns": [
{
"name": "id",
"type": "int",
"constraints": ["primary key"]
},
{
"name": "val",
"type": "text"
}
]
}