医疗智能体 EIHealth-引用数据库或者导入数据到指定数据库:命令示例

时间:2025-01-26 10:35:25

命令示例

本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。

  • 引用单个数据库实例
    health import db instance 12345 --project demo-project# 返回结果如下reference database finished! result is:[  {    "source_project_id": "879d952e-93c6-4b09-.....",    "source_database_id": "5ea7d345-d1b4-4520-.....",    "destination_database_id": "a94e72de-1305-4cc5-.....",    "destination_database_name": "test001",    "failed_reason": "",    "status": "success"  }]
  • 引用多个数据库实例
    health import database instance 12345;123333;56777 --project demo-project # 返回结果如下reference database finished! result is:[  {    "source_project_id": "879d952e-93c6-4b09-aee6-....",    "source_database_id": "e06f784f-c561-4323-92cd-....",    "destination_database_id": "0589ab48-d685-483f-92b7-....",    "destination_database_name": "test003",    "failed_reason": "",    "status": "success"  },  {    "source_project_id": "879d952e-93c6-4b09-aee6-c5cf....",    "source_database_id": "cac4cfb9-0160-4221-b7c4-092f3da8....",    "destination_database_id": "a1d7b16f-92b7-4344-a74d-e9eb0abe....",    "destination_database_name": "test002",    "failed_reason": "",    "status": "success"  }]
  • 导入数据到指定数据库
    health import database instance 12345 --skip-lines 1 --delimiter \t --files project-01:/test1.txt;project-01:/test2/txt# 返回结果如下import data to database successfully!
support.huaweicloud.com/clilist-eihealth/eihealth_31_0074.html