执行mysql命令
POST/v1/model/plugin/prod/mysqlCommand
执行mysql命令,注意只能B端身份用户调用
Request
- application/json
Body
required
- Array [
- ]
userId string
用户id
sqlTemplate stringrequired
Sql模版
parameter object[]
Query参数
key string
参数key
type string
参数类型
value string
参数值
config object
RunMysqlCommand 配置
timeout integer
Possible values: <= 30
Default value: 5
超时时间设置5s
preparedStatements boolean
是否开启预编译
dbLinkName string
数据连接器Name配置
Responses
- 200
成功
- application/json
- Schema
- Example (from schema)
Schema
- RunMysqlCommandResponse
- ErrorResponse
oneOf
data object
backendExecute string
后端执行时间(ms)
executeResultList array
执行结果列表
total integer
总数
requestId string
请求唯一id
code 错误码 (string)
message 错误信息 (string)
requestId 请求唯一id (string)
{}
Loading...