Column Config - aigodata/tangram GitHub Wiki

数据表列配置

属性

association

表关联关系, Json对象

"column_a": {
  "association": {
    "target_table": "target_b",
    "target_column": "id",
    "type": "1_1"
  }
}

该配置需要配置3个属性

  1. target_table 目标数据表
  2. target_column 目标数据表列
  3. type 关联类型, 支持4中类型. 1_1 一对一, 1_n 一对多, n_1 多对一, n_n 多对多

ignore

列忽略, 返回数据中不包含该列信息

"column_a": {
  "ignore": true
}