Get Load State

Request

GET /api/<db>/get_load_state

Description

Returns the status of the load transaction of the specified label Return of JSON format string of the status of specified transaction: Label: The specified label. Status: Success or not of this request. Message: Error messages State: UNKNOWN/PREPARE/COMMITTED/VISIBLE/ABORTED

Path parameters

  • <db>

Specify database

Query parameters

  • label

Specify label

Request body

None

Response

1. {
2. "msg": "success",
3. "code": 0,
4. "data": "VISIBLE",
5. "count": 0
6. }

If label does not exist, return:

1. {
2. "msg": "success",
3. "code": 0,
4. "data": "UNKNOWN",
5. "count": 0
6. }

Examples

  1. Get the status of the load transaction of the specified label.

``` 1. GET /api/example_db/get_load_state?label=my_label

  1. {
  2. "msg": "success",
  3. "code": 0,
  4. "data": "VISIBLE",
  5. "count": 0
  6. } ```