The sql-run command executes the specified statement against the cluster.

JSON Input Data Format
{
    "id": string,
    "sql": string
}
id * Specifies the ID of the cluster.
sql * Specifies the SQL statement.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "Database\r\ninformation_schema\r\nmysql\r\nperformance_schema\r\nsys\r\n"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}