提交 SQL 工单
yearning_submit_orderSubmit SQL change orders (DDL/DML) to Yearning for approval, requiring an explicit confirmation to finalize submission and start the audit workflow.
Instructions
提交 SQL 工单(DDL/DML)。提交前建议先 yearning_sql_check。对应 POST /api/v2/common/post。必须传 confirm=true 才会真正提交。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 完整 SQL 语句 | |
| delay | No | 延时执行时间,如 2026-01-01 02:00 | |
| table | No | 影响表名(可选) | |
| backup | No | 是否备份:0 否 / 1 是(DML 建议开启) | |
| remark | Yes | 工单说明 | |
| confirm | Yes | 必须为 true,确认提交工单进入审核流程 | |
| assigned | No | 期望审核人(提示用;实际以流程模板为准) | |
| database | Yes | 目标库名 | |
| source_id | Yes | 数据源 ID | |
| order_type | Yes | 工单类型 | |
| execute_time | No | 执行时间(可选) |