Connection Action

Request

GET /api/connection

Description

Given a connection id, return the query id that is currently being executed for this connection or the last execution completed.

The connection id can be viewed through the id column in the MySQL command show processlist;.

Path parameters

Query parameters

  • connection_id

    Specified connection id

Request body

None

Response

  1. {
  2. "msg": "OK",
  3. "code": 0,
  4. "data": {
  5. "query_id": "b52513ce3f0841ca-9cb4a96a268f2dba"
  6. },
  7. "count": 0
  8. }

Examples

  1. Get the query id of the specified connection id

    1. GET /api/connection?connection_id=101
    2. Response:
    3. {
    4. "msg": "OK",
    5. "code": 0,
    6. "data": {
    7. "query_id": "b52513ce3f0841ca-9cb4a96a268f2dba"
    8. },
    9. "count": 0
    10. }