get-table-detail
SKILL.md
获取表详情
概述
获取指定数据源的数据库中某张表的详细信息。
配置管理
配置文件位置:~/.easydata/config.json
脚本从此文件读取以下参数:
appidsignaturemammutBaseUrl
检查配置
python3 scripts/config.py check
首次配置
手动创建配置文件:
{
"appid": "",
"signature": "",
"mammutBaseUrl": ""
}
获取表详情
参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| catalog | String | 是 | Catalog 名称 |
| db | String | 是 | 数据库名称 |
| table | String | 是 | 表名称 |
使用方式
python3 scripts/get_table_detail.py --catalog hive --db default --table mytable
输出示例
- JSON 格式:
--json - 表格格式(默认)
工作流程
- 检查配置是否完整。
- 调用 GET /table/v1/get 接口获取表详情。
- 格式化并展示结果。