Get Load State
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β
{
"msg": "success",
"code": 0,
"data": "VISIBLE",
"count": 0
}
If label does not exist, return:
{
"msg": "success",
"code": 0,
"data": "UNKNOWN",
"count": 0
}
Examplesβ
Get the status of the load transaction of the specified label.
GET /api/example_db/get_load_state?label=my_label
{
"msg": "success",
"code": 0,
"data": "VISIBLE",
"count": 0
}